M.N.A.Smadi wrote:
does python support a C-like enum statement where one can define a variable with prespesified range of values?
Not built in, but there are various solutions available, some simpler than others. See the Infrequently Asked Questions: http://www.norvig.com/python-iaq.html
-- Steve Toledo-Brown Speaking for myself only. Humans please use domain uk.ibm.com -- http://mail.python.org/mailman/listinfo/python-list