def formatted_bytes(bytes_number):
    """
    Given a number of bytes, return a string with a nice format
    """
    if bytes_number >= 1024 ** 4:
        return f"{bytes_number / 1024 ** 4:.1f} TB"
    if bytes_number >= 1024 ** 3:
        return f"{bytes_number / 1024 ** 3:.1f} GB"
    if bytes_number >= 1024 ** 2:
        return f"{bytes_number / 1024 ** 2:.1f} MB"
    if bytes_number >= 1024:
        return f"{bytes_number / 1024:.1f} kB"
    else:
        return f"{bytes_number:.0f} bytes"