Question:
Complete the function definition to output the hours given minutes.
Sample output with input: 210.0
3.5
using variables def output_minutes_as_hours(orig_minutes):
Posted By Admin @ September 04, 2022
Complete the function definition to output the hours given minutes.
Sample output with input: 210.0
3.5
using variables def output_minutes_as_hours(orig_minutes):
Answer:
def output_minutes_as_hours(orig_minutes):
return orig_minutes / 60
a= output_minutes_as_hours(231)
print(a)
Explanation:
The required function is as mentioned above. The function takes as input the time in minutes, and converts it into hours. Note:The above method is written in Python. And one hour is equal to 60 MINUTES. And hence we have divided by 60 the time to get the number of hours.