Advertisement
teslariu

cubo

Jun 27th, 2022
742
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. """
  5. Script que calcula el cubo de un nùmero
  6. """
  7.  
  8. __author__ = "ALB"
  9. __copyright__ = "Curso de Python"
  10. __credits__ = ["Pepe","Juan"]
  11. __license__ = "GPLv3"
  12. __version__ = "0.98"
  13. __email__ = "tatuss_arroba_ciudad.com.ar"
  14. __status__ = "Development"
  15.  
  16.  
  17. def cubo(x):
  18.     """Función que calcula el cubo"""
  19.     return x**3
  20.  
  21. if __name__ == "__main__":
  22.     from aritmetica import ingresar_numero as numero
  23.     x = numero()
  24.     print(f"El cubo de {x} es {cubo(x)}")
  25.  
Advertisement
RAW Paste Data Copied
Advertisement