1import os
2import errno
3if not os.path.exists(value):
4 try:
5 os.makedirs(value, 0o700)
6 except OSError as e:
7 if e.errno != errno.EEXIST:
8 raise
1#the os module provides an operating system interface from Python
2import os
3#prints the name of the operating system
4print(os.name)
5#prints the absolute path for the module
6print(os.getcwd())