defcost(minutes):ifminutes<=5:return0ifminutes<=65:return30minutes-=65# Could also use math.ceil() here but didn't want the dependency on math for this example
half_hours=minutes//30+(minutes%30>0)return30+half_hours*10
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Daily Challenge #280 - Driving School
For further actions, you may consider blocking this person and/or reporting abuse