Is there a way to declare a constant in Python? In Java we can create constant values in this manner:
public static
Maybe pconst library will help you (github).
$ pip install pconst
from pconst import const const.APPLE_PRICE = 100 const.APPLE_PRICE = 200
[Out] Constant value of "APPLE_PRICE" is not editable.