Computer Science
Write a program that displays a joke. But display the punchline only when the user presses enter key.
(Hint. You may use input( ))
Related Questions
What will the following code result into ?
n1, n2 = 5, 7 n3 = n1 + n2 n4 = n4 + 2 print(n1, n2, n3, n4)
Correct the following program so that it displays 33 when 30 is input.
val = input("Enter a value") nval = val + 30 print(nval)
Write a program to read today's date (only del part) from user. Then display how many days are left in the current month.
Write a program that generates the following output :
5
10
9
Assign value 5 to a variable using assignment operator (=) Multiply it with 2 to generate 10 and subtract 1 to generate 9.