Python Program to Convert time into minutes

In this program, you’ll learn Python Program to Convert time into minutes. Write a Python Program to Convert time into minutes.

def convert_time(hrs, min):
min= hrs*60+min
return min
h=int(input("Enter the hours:"))
m=int(input("Enter the minutes:"))
m=convert_time(h,m)
print("Total Minutes=",m)

Output:

Python Program to Convert time into minutes