Python for Everybody - Intermediate Strings

Tell us what’s happening:

Describe your issue in detail here.
example code is ‘bananana’. I think it’s meant to be ‘banana’

Your code so far

Selected 3 as it has 3 na’s, was corrected to 2.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

Python for Everybody - Intermediate Strings

1 Like

find method returns the index, at which the searched string starts. In here that’s 2. You might be thinking about count method, which indeed would return 3 for bananana and counted na substring.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.