Checking if elements are empty
Doran, Harold
HDoran at air.org
Wed Sep 5 09:30:32 EDT 2007
Dear list:
Suppose I have a string as follows
x = ' \t'ff'
I can split this up as
y = x.split('\t')
Which gives
[ ' ', 'ff']
len(y)
2
Is there a way to check if the first element of y is null?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070905/3cd112ca/attachment.html>
More information about the Python-list
mailing list