Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (`HH:MM:SS`)

* `HH` = hours, padded to 2 digits, range: 00 - 99
* `MM` = minutes, padded to 2 digits, range: 00 - 59
* `SS` = seconds, padded to 2 digits, range: 00 - 59

The maximum time never exceeds 359999 (`99:59:59`)

You can find some examples in the test fixtures.

Difficulty: introductory

Starter code:

def make_readable(seconds):
	

Solutions:
def make_readable(s):
    return '{:02}:{:02}:{:02}'.format(s // 3600, s // 60 % 60, s % 60)


def make_readable(seconds):
    hours, seconds = divmod(seconds, 60 ** 2)
    minutes, seconds = divmod(seconds, 60)
    return '{:02}:{:02}:{:02}'.format(hours, minutes, seconds)

def make_readable(seconds):
    hours = seconds // 3600
    mins = (seconds - hours*3600) // 60
    secs = seconds - (hours*3600 + mins*60)

    h_str = str(hours)
    m_str = str(mins)
    s_str = str(secs) 

    if len(h_str) < 2:
        h_str = '0' + h_str

    if len(m_str) < 2:
        m_str = '0' + m_str  

    if len(s_str) < 2:
        s_str = '0' + s_str    

    return(f'{h_str}:{m_str}:{s_str}')


def make_readable(seconds):
    h= seconds/60**2
    m= (seconds%60**2)/60
    s= (seconds%60**2%60)
    return "%02d:%02d:%02d" % (h, m, s)
    # Do something


def make_readable(seconds):
    m, s = divmod(seconds, 60)
    h, m = divmod(m, 60)
    return "%02d:%02d:%02d" % (h, m, s)

def make_readable(n):
    return f'{n//3600:02d}:{(n%3600)//60:02d}:{n%60:02d}'


import math
def make_readable(seconds):
    hours = math.floor(seconds/(60*60))
    seconds-=hours*60*60
    minutes = math.floor(seconds/(60))
    seconds-=minutes*60
    out=""
    if(hours<10): 
        out+="0"
    out+=str(int(hours))+":"
    if(minutes<10): 
        out+="0"
    out+=str(int(minutes))+":"
    if(seconds<10): 
        out+="0"
    out+=str(int(seconds))
    return out


def make_readable(seconds):
    '''Returns the time in `seconds` as a human-readable format (HH:MM:SS).
    '''
    minute, hour = 60, 60 ** 2    
    return "%02d:%02d:%02d" % (
        seconds / hour,
        seconds % hour / minute,
        seconds % hour % minute
    )