<filename>09 - Inuput-Output/Py lessons/Write_files.py
# Writing Files in Python

# In order to write to a file, we first open it in write or append mode, after which, we use the python’s f.write() method to write to the file!

# f = open(“this.txt”, “w”)

# f.write(“This is nice”)        #Can be called multiple times

# f.close()


f = open('this.txt', 'w')
f.write("dev - vasu")
f.close
print(f)
<filename>09 - Inuput-Output/Py lessons/Write_files.py
# Writing Files in Python

# In order to write to a file, we first open it in write or append mode, after which, we use the python’s f.write() method to write to the file!

# f = open(“this.txt”, “w”)

# f.write(“This is nice”)        #Can be called multiple times

# f.close()


f = open('this.txt', 'w')
f.write("dev - vasu")
f.close
print(f)
# Writing Files in Python # In order to write to a file, we first open it in write or append mode, after which, we use the python’s f.write() method to write to the file! # f = open(“this.txt”, “w”) # f.write(“This is nice”)        #Can be called multiple times # f.close()