[Tutor] question about a number and bytes.

Tiger12506 keridee at jayco.net
Tue Jan 29 21:55:11 CET 2008


> Hello there all.
>
> I have a need to make a hi byte and lo byte out of a number.
>
> so, lets say i have a number 300, and need this number to be
> represented in two bytes, how do i go about that?

First question. Why would you need to do this in python? Second question. If 
you could do that, how would you use it in any other python context? 



More information about the Tutor mailing list