Created
February 16, 2021 23:41
-
-
Save dcshapiro/667b4b3ea8c34742ec88a19faae112b5 to your computer and use it in GitHub Desktop.
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
# DID: foods, animals | |
# TODO: cities and countries, colors, famous people | |
from IPython.display import clear_output | |
nonoWords=[] | |
while True: | |
words = input() | |
clear_output() | |
newWords=words.split() | |
for word in newWords: | |
if word in nonoWords: | |
print(word,"was on the list! You are OUT!") | |
nonoWords=nonoWords+newWords |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment