def print_pretty_time(total_seconds):
    """
    Receives an elapsed time in seconds and returns a string with the time
    expressed in hh:mm:ss

    Arguments:
            total_seconds {float} -- Total time expressed in seconds
    Returns:
            a string with the time expressed in the format hh:mm:ss
    """
    hours = int((total_seconds / 3600))
    minutes = int(((total_seconds % 3600) / 60))
    seconds = int(((total_seconds % 3600) % 60))

    return "{}:{}:{}".format(str(hours).zfill(2),
                             str(minutes).zfill(2),
                             str(seconds).zfill(2))