Created
March 3, 2018 03:31
-
-
Save dword4/e0b36351e33ff1eaf268438a6340fab6 to your computer and use it in GitHub Desktop.
using up alphabet characters via NATO phonetics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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