Build a Caesar Cipher - Step 12

Tell us what’s happening:

Hello guys, could you please assist in confirming why this does not pass?

Your code so far

def caesar(text, shift):
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    shifted_alphabet = alphabet[shift:] + alphabet[:shift]
    translation_table = str.maketrans(alphabet, shifted_alphabet)
    encrypted_text = text.translate(translation_table)
    print(encrypted_text)

# User Editable Region

encrypted_text = caesar("FreeCodeCamp", 3)


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

Challenge Information:

Build a Caesar Cipher - Step 12

calling it with the string freeCodeCamp

freeCodeCamp usually written in lower camel case with the first letter lowercase. (As opposed to Pascal case where the first letter is upper case.)

Note - it’s much easier to help if you say how you are stuck figuring out what is wrong with your code