Lesson 76
This commit is contained in:
parent
df043d26fc
commit
df89ccada0
@ -1,4 +1,3 @@
|
|||||||
with open("fruits.txt") as myfile:
|
with open("files/vegetables.txt", "w") as myfile:
|
||||||
content = myfile.read()
|
myfile.write("Tomato\nCucumber\nOnion")
|
||||||
|
myfile.write("\nGarlic")
|
||||||
print(content)
|
|
4
files/vegetables.txt
Normal file
4
files/vegetables.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Tomato
|
||||||
|
Cucumber
|
||||||
|
Onion
|
||||||
|
Garlic
|
Loading…
Reference in New Issue
Block a user