Lesson 76

This commit is contained in:
David Avery 2020-02-05 14:19:26 +00:00
parent df043d26fc
commit df89ccada0
3 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,3 @@
with open("fruits.txt") as myfile:
content = myfile.read()
print(content)
with open("files/vegetables.txt", "w") as myfile:
myfile.write("Tomato\nCucumber\nOnion")
myfile.write("\nGarlic")

4
files/vegetables.txt Normal file
View File

@ -0,0 +1,4 @@
Tomato
Cucumber
Onion
Garlic