Learn String Manipulation by Building a Cipher - Step 4

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

My code is about to deal with parenthesis but I’m struggling with it


# User Editable Region

text= (Hello World)
print

# User Editable Region
![image|281x500](upload://w25ZB7goBX6OH2aIreEPaSQLSGn.jpeg)
![image|281x500](upload://7F87uF0veUymnnRgvbnQhfsfzcy.jpeg)


Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.169 Mobile/15E148 Safari/604.1

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 4

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.

Welcome to our community!

Reset the step.

Instead of print(text), you should print the letter from the text variable, which is positioned at index 6. That means you should use print( ), but between parentheses put the variable ‘text’ and add immediately after that word a pair of square brackets [] and index 6 between them.

Welcome to the forum @Osei17

Please reset the step to restore the original code.

Read the instructions carefully to see how you can access an index using bracket notation.

Happy coding

Can you explain in other way… because I made it this way like…print(text[W]) but still say wrong

Use the number 6 instead of the concrete letter.

It worked, it worked haha🎉

2 Likes