Tech Study

Write a Python program Convert all units of time into seconds

Introduction

Write a Python program Convert all units of time into seconds. I have used python 3.7 compiler for debugging purpose.

days = int(input("Input days: ")) * 3600 * 24
hours = int(input("Input hours: ")) * 3600
minutes = int(input("Input minutes: ")) * 60
seconds = int(input("Input seconds: "))
 
Totaltime = days + hours + minutes + seconds
 
print("The  amounts of seconds", Totaltime)

Result

Write a Python program Convert all units of time into seconds
Write a Python program Convert all units of time into seconds

TaggedWrite a Python program Convert all units of time into seconds

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more