Guest User

Untitled

a guest
Nov 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. def funçao2(n):
  2. arq = open('ListaFilmes.txt', 'r')
  3. conteudo = arq.readlines()
  4. arq.close()
  5.  
  6. n = str(input('Digite o nome do filme: '))
  7.  
  8. for linha in conteudo:
  9. linha = linha.split(';')
  10. for coluna in linha:
  11. coluna = coluna.split()
  12. coluna1 = linha[0]
  13. coluna2 = linha[1]
  14. coluna3 = linha[2]
  15. coluna4 = linha[3]
  16. for elem in coluna:
  17. if n in elem:
  18. print('NOME:',coluna1)
  19. print('GÊNERO:',coluna2)
  20. print('CLASSIFICAÇÃO:',coluna3)
  21. print('ANO DE LANÇAMENTO:',coluna4)
  22. else:
  23. print('O filme não consta na lista')
Add Comment
Please, Sign In to add comment