Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

how can i perform this task by only using the given tools i.e, .find() and text[0]

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find(text[3])


# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0.1 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Modify your existing .find() call passing it text[0] as the argument

You’ve passed text[3] as the argument