Skip to content

Instantly share code, notes, and snippets.

@dcshapiro
Created February 16, 2021 23:41
Show Gist options
  • Save dcshapiro/667b4b3ea8c34742ec88a19faae112b5 to your computer and use it in GitHub Desktop.
Save dcshapiro/667b4b3ea8c34742ec88a19faae112b5 to your computer and use it in GitHub Desktop.
# 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