What's the magic word ?

What's the magic word - For this task we had to ask the user "What's the magic word?". This was based on the children that don't say the magic word, in this case please.We also needed to program it so that it would accept upper,lower and mixed letters.
-
s = ""
while s != 'please' not in s.lower():
  s = input("What's the magic word?")
print("OK!")

No comments:

Post a Comment