Python OS Module Programs with Solutions

Python Practice › OS Module Programs

Python OS Module Programs with Solutions

49 programs47 easy2 medium0 hard

49 programs for the os module and its friends os.path, shutil and subprocess: folders, paths, file counts, copying, backups, permissions, environment variables and running commands. Every solution works inside its own sample folder, so it is safe to run.

Before you start

Read the OS Module and Modules & pip lesson first if the topic is new to you.

All programs

Python Function Programs with Solutions

Python Practice › Function Programs

Python Function Programs with Solutions

39 programs35 easy4 medium0 hard

39 function programs that practise defining functions, parameters, return values, *args, nested functions and small menu-driven systems. Each solution is written as a reusable function and tested with several inputs.

Before you start

Read the Functions and Lambda and Scope lesson first if the topic is new to you.

All programs