Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- numero1 = input("Escribe el numero uno: ")
- numero2 = input("Escribe el numero dos: ")
- try:
- int(numero1), int(numero2)
- except:
- print ('Numeros!!!')
- exit()
- def operacion(n1,n2):
- print ("Suma :", n1, "+", n2)
- print ("Igual a:", int(n1) + int(n2))
- operacion(numero1,numero2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement