The compiler analyzed it, optimized it, and emitted precisely the machine instructions you expected. Same input, same output.
MicroPython is a well-known and easy-to-use way to program microcontrollers in Python. If you’re using an Arduino Uno Q, ...