import os
import time
# Create Directory using mkdir() and makedirs()

os.mkdir('./newDir')  # Create new directory in your working folder
os.makedirs('./makeDirDirectory/newDir')  # creates multiple directory

# remove directory

time.sleep(2)  # This is for delaying the deletion so that we can observe

os.rmdir('./newDir')
os.removedirs('./makeDirDirectory/newDir')

# current directory

print(os.getcwd())

os.chdir('./python-Exp-5/')

print(os.getcwd())

eaa49edb98c8413fea716ea516c229437b5445db
<mask token>

<mask token>
os.mkdir('./newDir')
os.makedirs('./makeDirDirectory/newDir')
time.sleep(2)
os.rmdir('./newDir')
os.removedirs('./makeDirDirectory/newDir')
print(os.getcwd())
os.chdir('./python-Exp-5/')
print(os.getcwd())

import os
import time
os.mkdir('./newDir')
os.makedirs('./makeDirDirectory/newDir')
time.sleep(2)
os.rmdir('./newDir')
os.removedirs('./makeDirDirectory/newDir')
print(os.getcwd())
os.chdir('./python-Exp-5/')
print(os.getcwd())

import os
import time
# Create Directory using mkdir() and makedirs()

os.mkdir('./newDir')  # Create new directory in your working folder
os.makedirs('./makeDirDirectory/newDir')  # creates multiple directory

# remove directory

time.sleep(2)  # This is for delaying the deletion so that we can observe

os.rmdir('./newDir')
os.removedirs('./makeDirDirectory/newDir')

# current directory

print(os.getcwd())

os.chdir('./python-Exp-5/')

print(os.getcwd())
