Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # ingreso.py DEBEN ESTAR EN LA MISMA CARPETA
- def ingresar_numero(n):
- while True:
- try:
- numero = float(input(f"Ingrese un numero {n}: "))
- except Exception:
- print("Error: debe ingresar un nĂºmero")
- else:
- return numero
Advertisement
Add Comment
Please, Sign In to add comment