Learn String Manipulation by Building a Cipher - Step 15

The print() function gives you only an output in the console, but functions and methods can have a return value that you can use in your code.

Now assign alphabet.find(text[0]) to a variable named index. In this way, index will store the value returned by alphabet.find(text[0]).

Welcome to the forum :wave:

That is the assignment. Do you have a question?

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

You can create a variable named “index,” and add alphabet.find(text[0]) as its content.