Respuesta :

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.

The complete function definition to output the hours given minutes is as follows:

def output_minutes_as_hours(orig_minutes):

   return f"{orig_minutes / 60 } hours"

print(output_minutes_as_hours(120))

Code explanation

The code is written in python.

  • Firstly, we define a function named "output_minutes_as_hours" and the function accept an argument "orig_minutes". The argument is the time in minutes.
  • Then, we return answer in hours when we divide the orig_minutes by 60.
  • Finally, we call the function along with it parameter.

learn more on python here: https://brainly.com/question/14913334

Ver imagen vintechnology