Python/basics.py

3 lines
122 B
Python
Raw Normal View History

2020-02-05 14:19:26 +00:00
with open("files/vegetables.txt", "w") as myfile:
myfile.write("Tomato\nCucumber\nOnion")
myfile.write("\nGarlic")