Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Is it possible to define a constant in Python using any specific keyword? Or it is just in a way that we declare a variable and use it without its value changed as if it is a constant?
Since I am a beginner to Python, I need your help.
There is no as such keyword to declare constant in python
But while defining constant in python it should be in upper case.
It's Recommended by python
language = 'python' ------> this is variable LANGUAGE = 'python' -----> this is constant
language = 'python' ------> this is variable
LANGUAGE = 'python' -----> this is constant
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.