Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Programa que calcula el cubo de un numero
- """
- __author__ = "Alejandro"
- __copyright__ = "ALeInc"
- __credits__ = ["Pedro", "Josefa", "Ana"]
- __license__ = "GPLv3"
- __version__ = "1.0"
- __email__ = "develop@gmail.com"
- __status__ = "Development"
- def cubo(x):
- """Calcula el cubo de un número"""
- y = x**3
- return y
- if __name__ == "__main__":
- x = int(input("Ingrese un numero: "))
- y = cubo(x)
- print(f"El cubo de {x} es {y}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement