Learn String Manipulation by Building a Cipher - Step 5

Tell us what’s happening:

I am new to coding so i need more assistace to learn it

Your code so far


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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 5

1 Like

Welcome to the forum :wave:

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

Good attempt but the instructions do not ask you to create a new varaible named ‘r’. Can you try this again in a single line?

You want to combine the two lines you’ve written

You’re very close but there’s no need to create a new variable to read a string. It is possible to do this in single line and print it at the same time. Good luck!