Thursday, January 7, 2021

Python code to find the amount of seconds

 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)

No comments:

Post a Comment

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...