🔒 Режим прегледа. Првих петнаест Foundations лекција је бесплатно; ова је Pro. Покрените 7-дневни trial да откључате едитор, AI савете и остатак курса. Картица је обавезна, можете отказати у било ком тренутку у Dashboard.Покрени 7-дневни trial →
📝 **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.
Predvidi izlaz
Pažljivo pročitaj kod
from pathlib import Path
p = Path("data") / "logs" / "today.log"
print(p.name)
print(p.suffix)