The study room's door logs when you came in and went out, like "08:15", both on the same day. study_minutes is written and relies on a small helper, to_minutes(clock), which turns "08:15" into minutes since midnight: 495. Finish to_minutes.
study_minutes("08:15", "09:05")→50study_minutes("07:00", "07:00")→0def to_minutes(clock):
# your code here: split at the colon into hours and minutes, return the total minutes
return 0
def study_minutes(start, end):
return to_minutes(end) - to_minutes(start)
Run tries the examples. When they look right, Submit.