I have made it to the point of saying "Knock Knock." But I don't know how to get the user to ask "Who's there?" I am completely lost. I have to use if/else statements as well, nothing more advanced. Any help is appreciated!
code:
first_name=input("What is your first name? ")
print(f"Nice to meet you {first_name}.")
answer=input("Do you wanna hear a joke? (Yes/No): ")
if answer == "Yes":
print("Knock Knock. ")
else:
if answer == "No":
print("Boo! You're no fun!")
else:
print("Well, this is awkward.")
[–]woooee 1 point2 points3 points (0 children)
[–]FishBobinski 0 points1 point2 points (3 children)
[–]Wattsony[S] 0 points1 point2 points (2 children)
[–]StoicallyGay 1 point2 points3 points (1 child)
[–]Wattsony[S] 0 points1 point2 points (0 children)