Build a Caesar Cipher - Step 10

Tell us what’s happening:

I dont understand what Im doing wrong… It tells me to pay attention to indentation levels, but I payed attention…

Your code so far

# User Editable Region
def caesar():
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    shift = 5
    shifted_alphabet = alphabet[shift:] + alphabet[:shift]
    translation_table = str.maketrans(alphabet, shifted_alphabet)
    text = 'hello world'
    encrypted_text = text.translate(translation_table)
# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Challenge Information:

Build a Caesar Cipher - Step 10

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-caesar-cipher/6810891bd6de8a87a833df42.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @karinaeranosyan2803,

You changed the starting code, which will cause the tests to fail.

Please reset this step and try again, being careful not to remove any of the starting code.

Happy coding