Build a Caesar Cipher - Step 6

Tell us what’s happening:

To be honest I don’t really know what I am supposed to do .Pls I need help

Your code so far


# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
shift = 5
shifted_alphabet = alphabet[shift:] + alphabet[:shift]
translation_table = alphabet+ shifted_alphabet

# 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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 6

https://www.freecodecamp.org/learn/full-stack-developer/workshop-caesar-cipher/step-6

The lesson is teaching you about the str.maketrans() method. Review the code example they gave you because you need to use this method in your answer.

hope that helps

1 Like

I know this has been solved. But to help further. Like jwilkins.oboe said, use str.maketrans() method. After that Input the two arguments.

if you want to help, please help on topics that are not 6 weeks old