slides10-ex5.py
Click here to get the file
Size
1 kB
-
File type
text/python-source
File contents
f = open("nomes.txt", "r")
lista = f.readlines()
f.close()
linhas3a5 = lista[2:5]
f = open("nomes-linhas3a5.txt", "w")
f.writelines(linhas3a5)
f.close()