Learn String Manipulation by Building a Cipher - Step 5

Tell us what’s happening:

Describe your issue in detail here.

Your code so far


# User Editable Region

printtext(6)

# 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/121.0.0.0 Safari/537.36 OPR/107.0.0.0 (Edition std-1)

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 5

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!

Hi @Tasyjohnsons and welcome to fCC forum.
Kindly share the issue you are facing with this task.

Welcome to the forum @Tasyjohnsons

You appear to have removed the first line of code.

Please reset the step to restore the original code.

The print call needs round parentheses.
The access the correct index of the variable you need to use square brackets.

Happy coding

Originally you had:

text = 'Hello World'
print(text)

And the requested task is:

Now, instead of printing text, print just the character at index 6.

In other words, it is asking you to print a character (at index 6) instead of the whole text. If you look above the request, there is an example how to write to obtain a single character.

r = text[8]

If you were to print the r variable, you would be displaying that single character.

print(r)

However, you can do it directly like

print(text[8])

The task is asking you to do the same with the index 6 instead of index 8.