Easy
Pieces of a File Path
Read a path like
docs/notes/week1.txt. Using os.path, print the file name, the folder and the extension.Input
One path.
Output
Three lines.
Sample 1
Input
docs/notes/week1.txt
Output
week1.txt docs/notes .txt
Sample 2
Input
a/b.py
Output
b.py a .py
Output appears here