Lets say we have this list:
funlist = ['a', 'b', 'c']
and lets say I do this:
if funlist[4]:
print funlist[4]
I will get the exception "list index out of range"
How can I test if the list item is empty without getting that exception?
--
View this message in context: http://www.nabble.com/simple-problem...p18762181.html
Sent from the Python - python-list mailing list archive at Nabble.com.
Comment