Practice · 1 of 3
Path Anatomy
CHALLENGE
Difficulty: intermediate+25 XP
Implement file_info(p) receiving a Path and returning a dict with keys name, stem, suffix, and parent (as str).
Press Submit to check your solution.
Back to lesson: Practice: pathlib Drills