Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- while True:
- try:
- numero = int(input("Ingrese un nro: "))
- except Exception:
- print("Error: no has ingresado un número")
- else:
- print(f"El numero es {numero}")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement