Python for Everybody - Intermediate Strings

On this one I think there is an error in the answers for this exercise ( Or I didn’t get it right :confused: )

word = "bananana"
i = word.find("na")

the stirring used in the question is ‘bananana’ so 3 of ‘na’ an. the answer is apparently 2

Welcome, michaldybowski.

I think you might be confusing what .find does. Review this section of the video:

Hope this clarifies

1 Like

As expected… I didn’t get that right at the first time. Thanks!