+ 1
Who may suggest the most convenient and easy way to define single (not iterable or hashable) named CONSTANT in Python?
1 Resposta
+ 2
Python is a dynamically typed language and does not support (and has no use of) constants in their pure sense. By convention, you declare variables you'd like to remain unchanged with capital letters.
But that's pretty much best you can do.