Tulis txt python
with open('readme.txt', 'w') as f:
f.write('readme')
Code language: JavaScript (javascript)
Expensive Elephant
with open('readme.txt', 'w') as f:
f.write('readme')
Code language: JavaScript (javascript)
file = open("msg.txt", "w")
file.write("my first file\n")
file.write("This file\n")
file.write("contains three lines\n")
file.close()