Learn String Manipulation by Building a Cipher STEP 13

What does any of this mean, in step 12 wasnt it just asking us to find where the first position of the string is, now in step 13, how can the position possibly be -1

Next step addresses such concerns :slight_smile:

??? ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

The next challenge explains what the -1 means: “not found”.
You are looking for the capital H in “Hello World” the all lowercase alphabet doesn’t include.

Please post your actual code and a link to the Step instead of a screenshot. Thanks

Ohhhhhhhhhhh thank you

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