0
variables
i know for a fact that variables can not be named with capitals so please tell me if i am correct or not?
1 Resposta
+ 5
You can use capitals, but there's a convention to only use capitals at the beginning of class names.
And using nothing but capitals for a name suggests to the user, that this variable should not be changed, like: ETERNAL = 42
Capitals are further used IN names when you want to offset words, like: myVarName.
Rulewise, nothing stops you to go crazy and write something like:
ToTaLlYcRaZy = True