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