Q:

How can I replicate the Arduino function lowByte in python?

According to the Arduino reference:

lowByte extracts the low-order (rightmost) byte of a variable

How could I replicate this behavior using Python (2.7)?

A:

lowByte = lambda b: b & 0xff

