You will find the error at the end of the whole
Calculator
pregunta = raw_input("suma, resta, multiplicacion, division: ")
if pregunta == "suma":
valor1 = raw_input("Introduce el numero que quieres sumar ")
valor2 = raw_input(str(valor1) + " " + "mas" + ":" + " ")
def suma(valor1, valor2):
operacion = str(valor1) + str(valor2)
print ("=" + str(operacion))
Once opened the protrama everything goes well and the operation, in theory, is done but after that it closes directly without showing the result or giving an error.