Learn String Manipulation by Building a Cipher - Step 5

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

text = ‘Hello World’
r = text[6]
print(r)


# User Editable Region

text = 'Hello World'
r = text[6]
print(r)

# User Editable Region
i cant figure out what im doing wrong here

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

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.

you need to do what you did, but without creating a variable, pass the value directly to the print function

Welcome to the forum @Hamza2010ko

You are using the code from the example.

Use that a guide to pass the argument to print call.

Happy coding

i understand but how

Passing the argument to the print call means writing the argument inside of the brackets.

print(text[6])

1 Like

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