Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

can somebody help me how to call the .find() in method?

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet.find=("abcdefghijklmnopqrstuvwxyz")

# User Editable Region

Your browser information:

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

Here is how you call the find the method.

text = 'Hello World'
text.find('W')

This will find the index of the ‘W’ in the text variable.

While this isn’t the world’s greatest source it has more info on functions: Python Functions