403,256 views
5 votes
5 votes
c complete the function definition to return the hours given minutes. output for sample program when the user inputs 210.0: 3.5

User Tobby
by
3.1k points

1 Answer

22 votes
22 votes

Answer:

def get_hours(minutes):

return minutes / 60.0

print(get_hours(210.0)) # Output: 3.5

User Fulaphex
by
3.1k points