Jeremy Jones wrote:
Mark Devine wrote:
I'm brand new to python and I was wondering if anybody knew of a easy
[snip]
You could use string.lower (make sure you "import string"):

string.lower is deprecated in Python 2.4. Better to go with str.lower as Diez B. Roggisch suggested:


commands = [c.lower() for c in commands]

Steve
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to