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.