Optimisation
const() declaration
Used to declare that the expression is a constant so that the compiler can optimise it. It evaluates the expression at compile time and substitutes the resulting value directly into the bytecode. The argument to const() may be anything which, at compile time, evaluates to an integer.
MicroPython
from micropython import const
CONST_X = const(123)
CONST_Y = const(2 * CONST_X + 1)
print(CONST_Y)