its giving you the index of the character/substring, not a true/false.
Python, like most languages, starts arrays at 0, so in this case:
> 'dog-cat'.find( 'at')
> result is 5
Its saying it found your string at array index 5, (so starting from 0,
the 6th character)
> Also, I getting 0 when the c
I used the find attribute and got
a='dog'
a.find( 'og')
result is 1
a.find('k')
result is -1
Which makes sense -1 means doesn't contain the character 1 means it
does, but when I use it the find attribute for numbers and anything
with a dash in it, I get a value greater than 1.
b= 'dog-cat'
b.fi