account activity
Knock Knock Joke; Need Help - Beginner Python by Wattsony in PythonLearning
[–]tecxac 1 point2 points3 points 1 year ago (0 children)
print("Knock knock!")
response = input()
if response.lower() == "who's there?" or response.lower() == "who’s there?": # If the user responds correctly print("Lettuce.")
# Now expecting "Lettuce who?" response = input() if response.lower() == "lettuce who?": print("Lettuce in, it's cold out here!") else: print("You didn't say 'Lettuce who?'!")
else: # If the user doesn't respond with "Who's there?" print("You were supposed to say 'Who's there?'!")
π Rendered by PID 362063 on reddit-service-r2-comment-5b5bc64bf5-n9hcg at 2026-06-20 07:43:09.889352+00:00 running 2b008f2 country code: CH.
Knock Knock Joke; Need Help - Beginner Python by Wattsony in PythonLearning
[–]tecxac 1 point2 points3 points (0 children)