Lesson 76
This commit is contained in:
parent
df043d26fc
commit
df89ccada0
@ -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
4
files/vegetables.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Tomato
|
||||
Cucumber
|
||||
Onion
|
||||
Garlic
|
Loading…
Reference in New Issue
Block a user