monty python in python 3

Ok... I have little memory so I can't quote a movie, or anything else for that matter, but I love Monty Python.   So here's something I cooked up when I should be asleep.
spam = "knights"
eggs = "NI"
print(f"We are the {spam} who say '{eggs}'!")
answer = input("Did you bring us a Shrubbery?").lower()

if answer in ['yes', 'y']:
print(f"We are now the {spam} who say...Niki-niki-new-how-itsy. ")
if (answer not in ['yes', 'y']):
print("Bring out your dead!")

Comments

Popular posts from this blog

JavaScript Ascii animation with while loops and console.log

playing with trigonometry sin in pygame

JavaScript and a Matrix