def byte_convertor(n):
    """
    Convert bytes value to Kilo, Mega etc
    >>> byte_convertor(10000)
    '9.8 K'
    >>> byte_convertor(100001221)
    '95.4 M'

    1 Kilobyte = 1,024 Bytes
    1 Megabyte = 1,048,576 Bytes
    1 Gigabyte = 1,073,741,824 Bytes
    1 Terabyte = 1,099,511,627,776 Bytes
    """
    symbols = 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'
    prefix = {}
    for i, s in enumerate(symbols):
        prefix[s] = 1 << (i + 1) * 10
    for s in reversed(symbols):
        if n >= prefix[s]:
            value = float(n) / prefix[s]
            return '%.1f %s' % (value, s)
    return '%.1f B' % n
