🔒 Режим превью. Первые 15 уроков Foundations — бесплатные; этот — Pro. Запусти 7-дневный trial чтобы открыть редактор, AI-подсказки и остальной курс. Нужна карта, отмена в Dashboard в любой момент.Начать 7-дневный trial →
← Курсы›Python Foundations›Модуль 8 · Современный Python и capstone›pathlib — современная обработка путейpredict163 / 174
+100 XP
Задание🌐 shown in EN
📝 **Question:** Predict the two lines printed. \`.name\` returns the final segment ("today.log"); \`.suffix\` returns the extension with the dot.
📋 Pick the right answer.
💡 **Hint:** Re-read the theory above if unsure.
Предскажи вывод
Прочти код внимательно
from pathlib import Path
p = Path("data") / "logs" / "today.log"
print(p.name)
print(p.suffix)