Oh my!!! This is a horrible way to teach this lesson. I spent so much time wondering “if I already know the position of the thing I want (the first letter), why would write code to look for the letter to return the position so that I can, in turn, return the letter?” Do you see how confusing that is!?
Yes, it is important to know how to use those tools, absolutely agree. But this lesson shows a method that is simply illogical and bad code. Please find another example to better highlight the importance and use of these tools.