Tell us what’s happening:
I noticed there was a change on the output but I don’t know how to do the rest
Your code so far
def caesar(text, shift):
alphabet = 'abcdefghijklmnopqrstuvwxyz'.upper()
shifted_alphabet = alphabet[shift:] + alphabet[:shift]
# User Editable Region
translation_table = str.maketrans(alphabet, shifted_alphabet)
# User Editable Region
return text.translate(translation_table)
encrypted_text = caesar('freeCodeCamp', 3)
print(encrypted_text)
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.1 Safari/605.1.15
Challenge Information:
Build a Caesar Cipher - Step 15