Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

Describe your issue in detail here.I’m finding it a bit challenging to come with the find command

Your code so far


# User Editable Region

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


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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

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.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

You are passing 'w' but it asks you to pass text[0] to the .find() function

# User Editable Region

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



# User Editable Region

I’ve tried doing that but it ain’t working out . Could you offer more help on this kindly

Hello @Dennis6

You got that almost right, everything is correct except the ‘w’ inside the parenthesis. Instead of ‘w’ the request asks for text[0]

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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