Computer Science, asked by pranavmaurya1234, 11 months ago

write a program that display a joke . but display the punch line only when the user presses enter key .

Answers

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