🔒 Режим прев'ю. Перші 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)