What's wrong with my python code

Sorry for the spanish code
I don’t now why it’s not working

  **Your code so far**
def CDT(usuario: str, capital: int, tiempo: int):
    usuario: str = usuario
    capital: int = capital
    tiempo: int = tiempo
    if tiempo <= 2:
        valor_a_perder: int = capital * 0.02
        valor_total: int = capital - valor_a_perder
        return(f"Para el usuario {usuario} La cantidad de dinero a recibir, según el monto inicial {capital} para un tiempo de {tiempo} meses es:{valor_total}")

    elif tiempo >= 3:
        valor_intereses: int = capital * 0.03 * tiempo / 12
        valor_total: int = capital + valor_intereses
        # resultado =resultado
        return (f"Para el usuario {usuario} La cantidad de dinero a recibir, según el monto inicial {capital} para un tiempo de {tiempo} meses es:{valor_total}")

  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36

Challenge: Render with an If-Else Condition

Link to the challenge:

Could you provide some more information? What does it mean it’s not working? What it’s supposed to be doing, what is doing instead? Some values that are giving wrong results?

does the challenge you linked matter for your question?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.