Python bignner
run the script
Ever wondered how many seconds are there in a month (30 days)?
Write a program to calculate and output the answer.
Answers
Answered by
20
Approach 1:-
#Assuming that the the Question requires to calculate no. of second in 30 days
sec= 30*24*60*60
print("No. of second in 30 days",sec)
Approach 2:-
#The following program is to calculate no. of second in any no. of days
day=(int)(input("Enter no. of days:"))
sec=day*24*60*60
print("No. of second in ",day," days :",sec)
Variable Description(including both the approach):-
- day:- to accept no. of day as input.
- sec:- to calculate no. of second in the given no. of days.
•Output Attached.
Attachments:
Answered by
0
Answer:
d=30
h=24
m=60
s=60
print(d*h*m*s)
i got the o/p , give it a try
Similar questions
Math,
27 days ago
World Languages,
27 days ago
Economy,
1 month ago
India Languages,
9 months ago
Math,
9 months ago