Python/basics.py
2020-02-05 14:19:26 +00:00

3 lines
122 B
Python

with open("files/vegetables.txt", "w") as myfile:
myfile.write("Tomato\nCucumber\nOnion")
myfile.write("\nGarlic")