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/ Explanation:

Why does Waldo wear stripes?


Because he doesn’t want to be spotted.

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad