Write program in python to display joke. But display punchline when user press enter key.
HINT:( You may use input( ) )
Answers
Answer: Could you rephrase that?
Explanation:
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