Advertisement
hackloper775

Comprobacion

Dec 31st, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. numero1 = input("Escribe el numero uno: ")
  4. numero2 = input("Escribe el numero dos: ")
  5.  
  6. try:
  7.        int(numero1), int(numero2)
  8. except:
  9.        print ('Numeros!!!')
  10.        exit()
  11.  
  12. print (int(numero1) + int(numero2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement