Learn String Manipulation by Building a Cipher - Step 5

Tell us what’s happening:

Guys it’s my first day. Could explain and give an example

Your code so far


# User Editable Region

text = 'Hello World'
 print = text[6]

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 5

Good start but two things.

First, look at the original code (reset the step to get back to this):

text = 'Hello World'
print(text)

This is the correct way to use print(), put the variable you want to change in the parentheses. The only part you want to change is the text variable in the parentheses.

Next, look at your indentation. You cannot have random indentation like this in Python. Indentation has meaning in Python so its very important that everything is lined up correctly.

Tell us what’s happening:

What can I do wrong please give me an example. It is my first day

Your code so far


# User Editable Region

text = 'Hello World'
 print(text)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 5

you are doing good, you need to remove the space right before the print, and then use bracket notation to acces the character at index 6 as requested

I have merged your two topics on this step 5, please do not create multiple topics for the same step

Thank u for clarification