Coding exercise 48
This commit is contained in:
parent
df89ccada0
commit
f23d88b6fd
@ -1,3 +1,4 @@
|
|||||||
with open("files/vegetables.txt", "w") as myfile:
|
with open("files/fruits.txt", "r") as myfile:
|
||||||
myfile.write("Tomato\nCucumber\nOnion")
|
content = myfile.read(90)
|
||||||
myfile.write("\nGarlic")
|
with open("files/fruits-copy.txt", "w") as myfile:
|
||||||
|
myfile.write(content)
|
6
files/fruits-copy.txt
Normal file
6
files/fruits-copy.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
pear
|
||||||
|
apple
|
||||||
|
orange
|
||||||
|
mandarin
|
||||||
|
watermelon
|
||||||
|
pomegranate
|
Loading…
Reference in New Issue
Block a user