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 número
- """
- __author__ = "pepe"
- __copyright__ ="Curso de Python"
- __credits__ = ["Juan","Cacho"]
- __license__ = "GPL"
- __version__ = "1.0"
- __email__ = "ale@ale.com"
- __status__ = "Development"
- def cubo(x):
- """Calcula el cubo de un nro"""
- y = x**3
- return y
- if __name__ == "__main__":
- x = int(input("Ingrese un nro: "))
- print(f"El cubo de {x} es {cubo(x)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement