Learn String Manipulation by Building a Cipher - Step 16

Tell us what’s happening:

i have been on this for longer than i feel i should be.
i would just like to know if my code has anything wrong or if im going in the right direction

Your code so far


/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0].lower())
shifted = (alphabet[7+shift].lower())
print(shifted)

/* 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/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 16

don’t hardcode 7, use the variable. Also alphabet is already all lowercase, you don’t need to use lower(). more, the parentheses around the part to the right of the assignment operator are unnecessary and could have the tests fail