#!/usr/bin/python
import os
# Create a directory "test"
os.mkdir("test")
#!/usr/bin/python
import os
# This would give location of the current directory
os.getcwd()
#!/usr/bin/python
import os
# Changing a directory to "/home/newdir"
os.chdir("/home/newdir")
#!/usr/bin/python
import os
# This would remove "/tmp/test" directory.
os.rmdir( "test" )