Learn String Manipulation by Building a Cipher - Step 4

I think this is right but it won’t take the answer, it’s asking for me to print the 6th character of the index “Hello World”

Your code so far

Am I doing anything wrong here? I’m brand new to this.


/* User Editable Region */

text = 'Hello World'
r = text[6]
print (r)
 
/* 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/119.0.0.0 Safari/537.36 OPR/105.0.0.0 (Edition std-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.

Creating the r variable isn’t necessary.
You already got the text[6] part.
All you need to do is pass that to the print function.

Oh dang I had tried that way before this but forgot to add the parentheses.
Thanks!

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