Computer Science, asked by karunakar9341, 8 months ago

Write a program to count number of seconds in a day in python

Answers

Answered by wordsbyme2019
0

Answer:

Explanation:

def seconds()

     return 60*60*24

Answered by Equestriadash
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:

\tt Enter\ the\ number\ of\ day(s): 2

\tt The\ number\ of\ seconds\ in\ those\ many\ day(s)\ is\ 172800

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:

\tt Enter\ the\ number\ of\ day(s): 2

\tt The\ number\ of\ seconds\ in\ those\ many\ day(s)\ is\ 172800

Similar questions