Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ["AMANDA,"JULIANA","VANESSA","PATRICIA"]
  2.  
  3. def ordem_txt(palavras):
  4. arq = open(palavras, 'r')
  5. texto = arq.read()
  6. palavras = texto.split(" ")
  7. palavras.sort()
  8. print(palavras)
  9. return palavras
  10.  
  11. def write_txt(palavras, caminho):
  12. arq = open(caminho, "w")
  13. arq.writelines(palavra + 'n' for palavra in palavras)
  14. arq.close()
Add Comment
Please, Sign In to add comment