Write a python program that displays a joke but displays the punchline only when the user presses enter key
Answers
Answer:
<joke> may i forgot it learn python its good
a = input("press enter to read a joke :")
print(" ")
print("why sunday is stronger than monday")
print(" ")
b = input("any guess :")
if b == "no":
print(".")
print(".")
print(".")
print(".")
print("because it,s a week day")
else:
if b == "yes":
print(" ")
c = input("enter your guess :")
if c == "because it,s a week day":
print("correct guess")
print("you won !")
else:
print("incorrect guess")
else:
print("invalid value entered , enter only yes or no")
this is in advanced form.......once you understand it is very easy
you will have to read every line and understand it
note :- you can remove that print(" ") thing which is present in between the codes it put it there sto have a nice output look