← Questions

Print a directory tree with indentation

0
UberCodingLast asked Oct 2025

Given a root directory, print it and everything under it, one entry per line, with each entry indented one step more than its parent directory.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding