Skip to content

Instantly share code, notes, and snippets.

@agiliq agiliq/gist:254892
Created Dec 12, 2009

Embed
What would you like to do?
In [1]: '' in 'abc'
Out[1]: True
In [2]: [] in [1, 2, 3,] #If empty sequence in sequence is True, why is this false?
Out[2]: False
In [3]: '' in [1, 2, 3,]
Out[3]: False
In [4]: x = 'abc'
In [5]: x.find('')
Out[5]: 0
In [6]: x.find('a')
Out[6]: 0
#so '' == 'a'?
In [7]: x.find('b')
Out[7]: 1
In [8]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.