Hello all,


I am drawing a blank right now and can't seem to find anything on it and I am sure this issue has been addressed before, so here is the question.

Can and if you can how do you set a variable as a constant?

Example of what I mean: (this is loose and not python since variable type declaration is not needed in python)

CONST int gamma = 5

This would mean in my little mind that the variable gamma which is an integer of 5 can not be changed in the code and would throw an error if you tried. Just wondering if there is a way of doing this in Python. This is just to clear this up in my mind it means nothing to my code since the way I write variable names any variable I want to remain unchanged I use caps to help distinguish easily.

Thanks.

Jeff

"They say the quickest way between to 2 points is a straight line, however where is the fun in that?"
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to