+ 1
Who may suggest the most convenient and easy way to define single (not iterable or hashable) named CONSTANT in Python?
1 Answer
+ 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.
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes