Computer Science, asked by laljishah9415, 10 months ago

Write program in python to display joke. But display punchline when user press enter key.
HINT:( You may use input( ) )

Answers

Answered by watermelonyytx
0

Answer: Could you rephrase  that?

Explanation:

Answered by f191shivam
0

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

Similar questions