Code AnalysisBeginner 45s
Path parent
What is the output?
Starter code
from pathlib import Path
p = Path('/a/b/c/d.txt')
print(p.parent.parent.name)Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.