I have this code that I'm trying to run in SublimeREPL, but after it takes both inputs, it skips the code where it says what to do with those numbers, and it jumps to the final lines. Has the version of python something to do with it?
ef suma(num1, num2):
return num1+num2
def resta(num1, num2):
return num1-num2
def multiplica(num1, num2):
return num1*num2
def divide(num1,num2):
return num1/num2
op1=(int(input("Introduce el primer número: ")))
op2=(int(input("Introduce el segundo número: ")))
operacion=input("Introduce la operación a realizar (suma,resta,multiplica,divide): ")
if operacion=="suma":
print(suma(op1,op2))
elif operacion=="resta":
print(resta(op1,op2))
elif operacion=="multiplica":
print(multiplica(op1,op2))
elif operacion=="divide":
print(divide(op1,op2))
else:
print ("Operación no contemplada")
print("Operación ejecutada. Continuación de ejecúción del programa ")