Back
Is there a way to declare a constant in Python? In Java we can create constant values in this manner:
public static final String CONST_NAME = "Name";
What is the equivalent of the above Java constant declaration in Python?
In python you cannot declare constant you need to use it as is.
Take a look at this video in case you wish to learn more about python:
31k questions
32.8k answers
501 comments
693 users