Is there a way to declare a constant in Python? In Java we can create constant values in this manner:
public static
PEP 591 has the 'final' qualifier. Enforcement is down to the type checker.
So you can do:
MY_CONSTANT: Final = 12407
Note: Final keyword is only applicable for Python 3.8 version
Final