Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

Describe your issue in detail here.
I cant seem to figure out how to pass step 12 of scientific computing of python. im supposed to locate char, parse a_string, and call find() pass text[0] to the function

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
print(find(text[0]))

# 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/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 12

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Hello am2017,

find() is a function that needs to be called on a string.
Right now you are trying to find text[0] in nothing.
The question wants you to find the text[0] from alphabet.

Also once you have the right code, make sure not to have it in the print function, as that may not pass.

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