Construir un Cifrado César - Paso 23

Cuéntanos qué está pasando:

necesito ayuda… ya no me da la cabeza para continuar

Tu código hasta el momento

def caesar(text, shift, encrypt=True):

    if not isinstance(shift, int):
        return 'Shift must be an integer value.'

    if shift < 1 or shift > 25:
        return 'Shift must be an integer between 1 and 25.'

    alphabet = 'abcdefghijklmnopqrstuvwxyz'

    if not encrypt:
        shift = - shift
    
    shifted_alphabet = alphabet[shift:] + alphabet[:shift]
    translation_table = str.maketrans(alphabet + alphabet.upper(), shifted_alphabet + shifted_alphabet.upper())
    encrypted_text = text.translate(translation_table)
    return encrypted_text


# User Editable Region

    def encrypt(text, shift):
        pass
    def descryt(text, shift, False):
        pass

# User Editable Region


encrypted_text = caesar('freeCodeCamp', 3)
print(encrypted_text)

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 OPR/131.0.0.0

Información del Desafío:

Construir un Cifrado César - Paso 23

GitHub Link: i18n-curriculum/curriculum/challenges/espanol/blocks/workshop-caesar-cipher/681a2a6cf95e82ca30866364.md at main · freeCodeCamp/i18n-curriculum · GitHub

these functions are inside caesar, should they go there?

you also can’t use False as function parameter, that is giving the error in the terminal

Declara dos funciones llamadas encrypt y decrypt , ambas con parámetros text y shift .

note you are asked to use 2 parameters for both