This is just part of the question. It has error that missing 1 required positional argument 'mm' when running it. I know the problem is that it run like time_to_minutes((h,mm),) what can i do to make it run like time_to_minutes(h,mm)?
def time_to_minutes(h,mm):
time = h*60 + mm
return time
def extract_time(time):
h=int(time[:-3])
mm=int(time[-2:])
return h,mm
def time_between(a,b):
first = time_to_minutes(extract_time(a))
return first