Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def eight_bit_conv(x):
- retval = []
- while x > 255:
- x, y = divmod(x, 256)
- retval.append(y)
- else:
- retval.append(x)
- retval.reverse()
- return retval
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement