Advertisement
teslariu

modulo main

May 15th, 2021
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. from raiz import calcular_raiz as c, imprimir_raices as i
  5.  
  6. while True:
  7.     numero = float(input("Ingrese un nro: "))
  8.     raices = c(numero)
  9.     i(raices)
  10.     opcion = input("Presione cualquier tecla para continuar ('X' para salir): ")
  11.     if opcion.casefold() == "x":
  12.         print("Gracias por usar este programa...")
  13.         break
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement