Learn String Manipulation by Building a Cipher - Step 13

Instructions:
Call the .find() method to the ‘alphabet’ variable.
Pass text[0] to the method.

Type the correct code in this post.

text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
print(alphabet.find(text[0]))

### Challenge Information:
Learn String Manipulation by Building a Cipher - Step 13
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/step-13

This is basically correct, but the instructions don’t say to print it

Thanks for clearing that up. I got use to using the print function.

That’s not a bad thing!

It’s very useful for troubleshooting, just print out all your variables to see what they are at different points of the program.