Newer
Older
def convert_time(hours, minutes):
minutes_in_hour = 60
mnt = hours * minutes_in_hour
total = minutes + mnt
return total
#%%
hours = 5
minutes = 15
converted = convert_time(hours,minutes)
print(converted)
#%% Instead of writing function from scratch, you should first implement the
# functionality, as in the code below. Then, you can pack it in the function.
hours = 5
minutes = 15
minutes_in_hour = 60
mnt = hours * minutes_in_hour
total = minutes + mnt