Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Programa que calcula potencias de números
- """
- __author__ = "Yo, el mejor"
- __copyright__ = "Curso de Python"
- __credits__ = ["Cesar","Mauro"]
- __license__ = "GPL"
- __version__ = "1.0"
- __email__ = "tatuss@ciudad.com.ar"
- __status__ = "Development"
- def cubo(x):
- """Función que recibe un nro y devuelve su cubo"""
- return x**3
- if __name__ == "__main__":
- x = int(input("Ingrese un entero"))
- y = cubo(x)
- print(f"El cubo de {x} es {y}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement