Computer Science
Correct the following program so that it displays 33 when 30 is input.
val = input("Enter a value")
nval = val + 30
print(nval)
Related Questions
Predict the output of the following code :
days = int (input ("Input days : ")) * 3600 * 24 hours = int(input("Input hours: ")) * 3600 minutes = int(input("Input minutes: ")) * 60 seconds = int(input("Input seconds: ")) time = days + hours + minutes + seconds print("Total number of seconds", time)
If the input given is in this order : 1, 2, 3, 4
What will the following code result into ?
n1, n2 = 5, 7 n3 = n1 + n2 n4 = n4 + 2 print(n1, n2, n3, n4)
Write a program that displays a joke. But display the punchline only when the user presses enter key.
(Hint. You may use input( ))Write a program to read today's date (only del part) from user. Then display how many days are left in the current month.