0

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.

Ismael Padilla
  • 5,246
  • 4
  • 23
  • 35
Meeraj Adhikari
  • 362
  • 5
  • 15

1 Answers1

1

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

Community
  • 1
  • 1
Pravin Garodi
  • 186
  • 1
  • 6