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 nro
- """
- __author__ = "ALB"
- __copyright__ = "Curso de Python"
- __credits__ = ["Ale","Jhoan","Hernan"]
- __license__ = "GPL"
- __version__ = "3.0"
- __email__ = "[email protected]"
- __status__ = "Development"
- def cubo(x):
- """Función que pide un número y retorna su cubo"""
- return x**3
- if __name__ == "__main__":
- x = int(input("Dame un nro entero: "))
- y = cubo(x)
- print(f"El cubo de {x} es {y}")
Advertisement
Add Comment
Please, Sign In to add comment