CBSE Class 11 Computer Science
Question 89 of 106
Python Fundamentals — Question 18
Back to all questions 18
Question Question 18
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
Output
Input days : 1
Input hours: 2
Input minutes: 3
Input seconds: 4
Total number of seconds 93784