newfile / app.py
sh20raj's picture
Rename main.py to app.py
ab851c2
raw
history blame contribute delete
190 Bytes
# Open the file in write mode ('w')
with open("xxx.txt", "w") as file:
# Write the content "1234" to the file
file.write("1234")
print("File 'xxx.txt' created with content '1234'")