You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open('pessoas.csv') as arquivo:
with open('pessoas.txt', 'w') as saida:
for registro in arquivo:
pessoa = registro.strip().split(",")
print("Nome: {}, Idade: {}".format(*pessoa), file=saida)
if arquivo.closed:
print('arquivo foi fechado')
The text was updated successfully, but these errors were encountered:
with open('pessoas.csv') as arquivo:
with open('pessoas.txt', 'w') as saida:
for registro in arquivo:
pessoa = registro.strip().split(",")
print("Nome: {}, Idade: {}".format(*pessoa), file=saida)
if arquivo.closed:
print('arquivo foi fechado')
The text was updated successfully, but these errors were encountered: