Build a Caesar Cipher - Step 17

Tell us what’s happening:

I removed the return part to replace it with the is instance(). From there Im not sure what I am doing wrong. I am getting SyntaxError: invalid syntax. Please help me.

Your code so far

def caesar(text, shift):


# User Editable Region

    if True:

# User Editable Region

        isinstance(shift, int)'Shift must be an integer value.'

    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    shifted_alphabet = alphabet[shift:] + alphabet[:shift]
    translation_table = str.maketrans(alphabet + alphabet.upper(), shifted_alphabet + shifted_alphabet.upper())
    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.2 Safari/605.1.15

Challenge Information:

Build a Caesar Cipher - Step 17

you are not asked to remove the return, you are asked to update the condition, which right now is True