stranger wrote
thank you,i see what the way to do it is now (but in the example you just gave wouldn't 40/16=2.5,so remainder AKA "40%16"=5.? but 6th bit because they start at zero
)
That's what I meant by integer division. With integer division 40 / 16 equals 2 with remainder 8. In Python this would be written as 40 // 16.