Programming Examples

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


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

Hint: you may use input()

print("Why does Waldo wear stripes?")
input()
print("Because he doesn’t want to be spotted.")
Output

Why does Waldo wear stripes?


Because he doesn’t want to be spotted.

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad