Review this code:
What output does it produce?
<H unpacks two bytes as a little-endian unsigned 16-bit integer. The bytes \x01\x00 therefore decode to 1, and struct.unpack returns its results in a one-element tuple.
<H
\x01\x00
1
struct.unpack
Community Discussion