Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

Please I don’t understand what it means to build caeser cipher,

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Don’t worry too much about that. Building a Caesar cipher is the overall goal you will work towards.

Focus on each step:

To implement this, you will use the .find() method discussed in the previous step. Modify your existing .find() call passing it text[0] as the argument instead of 'z'.

If you do want to learn more about a caesar cipher, which is a good idea to fully understand what you will be working towards, you can do a search and read about that topic. More on caesar cipher:
https://en.wikipedia.org/wiki/Caesar_cipher

https://cryptii.com/pipes/caesar-cipher

Modify your existing .find() call

alphabet.find('z')   #edit this line!

passing it text[0] as the argument instead of 'z'

Replace 'z' with text[0]