A simple syntax error

What I am saying there is that an integer at ‘W’ there is another integer at print, but the error is not showing. The print integer is printing

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

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

I don’t understand what you want to archive here.

If you want to print out the the number 6:

print(6)

If you want to print out the value of the variable w:

print(w)

If you want to print out the character "W" in the string "Hello World":

print(text[6])

see the both
there is some difference
but the result is same
It prints the print integer 6

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

text = 'Hello World'
W = text[10]
print(6)

Your browser information:

It printed out the number 6 because you told it to print out the number 6:

print(6)

Try to use:

print(W)

to print out the value of the variable W.

Please stop opening new threads for this, I’ve already asked you:

https://forum.freecodecamp.org/t/learn-string-manipulation-by-building-a-cipher-step-5/688702/4

https://forum.freecodecamp.org/t/learn-string-manipulation-by-building-a-cipher-step-5/688730