CBSE Class 11 Computer Science Question 92 of 106

Python Fundamentals — Question 1

Back to all questions
1
Question

Question 1

Write a program that displays a joke. But display the punchline only when the user presses enter key.
(Hint. You may use input( ))

Solution
print("Why is 6 afraid of 7?")
input("Press Enter")
print("Because 7 8(ate) 9 :-)")
Output
Why is 6 afraid of 7?
Press Enter
Because 7 8(ate) 9 :-)
Answer