Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

i looked at another people posts about this and it looks like this is the right answer but it is just not working

Your code so far


# User Editable Region

text = "Hello World"
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find(text{0})

# 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/122.0.0.0 Safari/537.36 OPR/108.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

Welcome to the forum!

Just a small syntax error: Use square brackets [] to access the first character in “text”, not curly ones.

1 Like