How to work with the Python os module

Motivation When you are dealing with files and directories or operating system version and environment variables the os module needs to become your friend os Get current working directory import os print(os.getcwd()) Get platform info os.name == “nt”   # Windows os.name == “posix” #  Linux and macOS Get environment variables assert os.environ.get(“FOO”) == “BAR” os.path…