def _to_hours_mins_secs ( time_taken ) : mins , secs = divmod ( time_taken , 60 ) hours , mins = divmod ( mins , 60 ) return hours , mins , secs
python given seconds (int) calculate hours minutes and seconds
Convert seconds to hours mins and seconds .
def _to_hours_mins_secs(time_taken):
    """Convert seconds to hours, mins, and seconds."""
    mins, secs = divmod(time_taken, 60)
    hours, mins = divmod(mins, 60)
    return hours, mins, secs