Math, asked by priyanshijn, 11 months ago

20. 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("The amounts of seconds", time)
If the input given is in this order: 1, 2, 3, 4​

Answers

Answered by amitnrw
21

Answer:

"The amounts of seconds", 93784

Step-by-step explanation:

days = int(input("Input days: ") * 3600 * 24

days = 1 =  1 * 3600 * 24 = 86400 secs

hours = int(input("Input hours: ")) * 3600

hours = 2 = 2 * 3600 = 7200 secs

minutes = int(input("Input minutes:")) * 60

minutes = 3 = 3 * 60 = 180 sec

seconds = int(input("Input seconds:"))

Seconds = 4

times = 86400 + 7200 + 180 + 4

= 93784

"The amounts of seconds", 93784

Answered by supriyaede
3

str1="6/4"

print("str1"

Similar questions