Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- Script que calcula el cubo de un nùmero
- """
- __author__ = "ALB"
- __copyright__ = "Curso de Python"
- __credits__ = ["Pepe","Juan"]
- __license__ = "GPLv3"
- __version__ = "0.98"
- __email__ = "tatuss_arroba_ciudad.com.ar"
- __status__ = "Development"
- def cubo(x):
- """Función que calcula el cubo"""
- return x**3
- if __name__ == "__main__":
- from aritmetica import ingresar_numero as numero
- x = numero()
- print(f"El cubo de {x} es {cubo(x)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement