Skip to content

Instantly share code, notes, and snippets.

@thezakman
Created April 7, 2019 05:30
Show Gist options
  • Save thezakman/6928a043e025281c2398c93bbfd6e2b3 to your computer and use it in GitHub Desktop.
Save thezakman/6928a043e025281c2398c93bbfd6e2b3 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
letra = open(sys.argv[1]).read().lower() #read lyrics .txt files
password = ""
for line in letra.splitlines():
if len(line.strip()) == 0 :
password += "\n"
else:
palavras = line.split()
for palavra in palavras:
password += palavra[0]
print password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment