Write a program to count number of seconds in a day in python
Answers
Answered by
0
Answer:
Explanation:
def seconds()
return 60*60*24
Answered by
6
The following codes must be typed in script mode, saved and then executed.
CODE 1:
days = int(input("Enter the number of day(s):"))
sec = 86400*days
print("The number of seconds in those many day(s) is", sec)
OUTPUT:
2
CODE 2:
days = int(input("Enter the number of day(s):"))
print("The number of seconds in those many day(s) is", 86400*days)
OUTPUT:
2
Similar questions