Os Module | Python Tutorials For Absolute Beginners In Hindi #79

Code as described/written in the video


import os
# print(dir(os))
# print(os.getcwd())
# os.chdir("C://")
# print(os.getcwd())
# f = open("harry.txt")
# print(os.listdir("C://"))
# os.makedirs("This/that")
# os.rename("harry.txt", "codewithharry.txt")
# print(os.environ.get('Path'))
# print(os.path.join("C:/", "/harry.txt"))

# print(os.path.exists("C://Program Files2"))
print(os.path.isfile("C://Program Files"))


Comments(1)

sonu007 at 2019-06-23 09:30:09 says
Harry bhai os module k ek video linux operating system k lia bhi bnao bhai