+ 3

Precious time

Ever wondered how many seconds are there in a month (30 days)? Write a program to calculate and output the answer. Answer day= 30 hour = 24*day min = 60*hour Sec = 60*min Print (Sec)

29th Apr 2021, 3:22 PM
Darkwa John
Darkwa John - avatar
8 Answers
+ 7
Can you please explain your question.
29th Apr 2021, 3:26 PM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 7
Darkwa John See ur way of solving the problem is right . Just make a small change: Write: print(Sec) Because u have written P alphabet in capital letter which will show u an error.
29th Apr 2021, 4:12 PM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 4
Darkwa John What is problem here? You can do like this also print(30 * 24 * 60 * 60)
29th Apr 2021, 4:07 PM
A͢J
A͢J - avatar
+ 1
There are 24 hours in a day 60 mins in an hour and 60 seconds in a day Multiplying 24 by day gives hours in a 30days Multiplying 60 by the hour gives the number of mins in 30days When you proceed by multiplying 60 by min gives the number of seconds in 30days
29th Apr 2021, 3:42 PM
Darkwa John
Darkwa John - avatar
+ 1
Ok thanks
29th Apr 2021, 4:16 PM
Darkwa John
Darkwa John - avatar
+ 1
print("Question : Ever wondered how many seconds are there in a month (30 days)? ") print("answer:") print("1 month(30 days) : 30 days") print("1 day : 24 hours") print("1 hour : 60 minutes") print("1 minute : 60 sec") m = 30 #1 month(30 days) d = 24 #1 day(24 hours) h = 60 #1 hour(60 minutes) min= 60 #1 minute(60 second) total = m*d*h*min print(total)
18th Feb 2023, 4:04 AM
BlackRanchu
0
And is around 25,920,000
29th Apr 2021, 3:45 PM
Darkwa John
Darkwa John - avatar
0
Yeah but doing this wont be meaningful to someone He or she wont know what you’re calculating
29th Apr 2021, 4:18 PM
Darkwa John
Darkwa John - avatar