Advertisement
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
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement