def bytes2word(byte_list):
assert len(byte_list) == <NUM_LIT:2><EOL>return (byte_list[<NUM_LIT:0>] << <NUM_LIT:8>) + byte_list[<NUM_LIT:1>]<EOL>
>>> bytes2word([0xff,0xab])
65451

>>> hex(bytes2word([0xff,0xab]))
'0xffab'