[Tutor] FW: How do you turn something into a number?
alan.gauld at freenet.co.uk
Mon Aug 22 21:27:45 CEST 2005
> What does it mean when you write the  after the return statement?
> e.g. return struct.unpack("!h", bytes)
Its just indexing the list returned by struct.unpack(),
specifically extracting tghe first element.
For more on using struct() see the bottom section of my file handling
topic... (now corrected to fix a bug reported by a recent
Author of the Learn to Program web tutor
More information about the Tutor