Checking if elements are empty

Doran, Harold HDoran at
Wed Sep 5 15:30:32 CEST 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']


Is there a way to check if the first element of y is null?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list