Computer Science, asked by chinmay3141, 2 months ago

Which function in python is used to display a constant, the value of a variable or the result of an expression?

Answers

Answered by Anonymous
2

You cannot declare a variable or value as constant in Python. Just don't change it.

If you are in a class, the equivalent would be:

  • class Foo(object): CONST_NAME = "Name"

if not, it is just

  • CONST_NAME = "Name"

 \\ \ \\

Similar questions