Skip to main content
← CoursesPython for Office WorkersModule 5 · Files & schedulingWalk a folder tree recursivelypredict17 / 50
💬 Discuss🧪 Playground+125 XP
Task
Given a folder tree where data/jan.csv is 100 bytes and data/feb/q1.csv is 250 bytes, and the script in the theory loops over Path("data").rglob("*.csv"), what does the final print(f"total: {total_size} bytes across CSVs") print? Type the line.

Keep going

🔮 Predict the output

Read the code carefully

What will the program print? Write here:

📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…