Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
position_sum = alphabet.find(‘z’) + alphabet.find(text[0])

what is mymistack?

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
position_sum = alphabet.find('z') + 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/132.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Hi there and welcome to the forum!
You have to replace text[0] with 'z', not concatenate it, in the existing find() call