Skip to content

Instantly share code, notes, and snippets.

@dword4
Created March 3, 2018 03:31
Show Gist options
  • Save dword4/e0b36351e33ff1eaf268438a6340fab6 to your computer and use it in GitHub Desktop.
Save dword4/e0b36351e33ff1eaf268438a6340fab6 to your computer and use it in GitHub Desktop.
using up alphabet characters via NATO phonetics
#!/usr/bin/python3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
chars = list(alphabet)
words = ['alpha','bravo','charlie','delta','echo','foxtrot','golf','hotel','india','juliett','kilo','lima','mike','november','oscar','papa','quebec','romeo','sierra','tango','uniform','victor','whiskey','xray','yankee','zulu']
for w in words:
# loop through each word specified
for cw in w:
# now we work through each character in the word
if cw in chars:
chars.remove(cw)
else:
pass
print(chars)
print(w)
print(chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment