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__ = "ALB"
- __copyright__ = "Python Programming Sab TT"
- __credits__ = ["Seba", "Fabi", "Pedro"]
- __license__ = "GPLv3"
- __version__ = "1.0"
- __email__ = "tatuss@ciudad.com.ar"
- __status__ = "Development"
- def cubo(x):
- """Función que toma un nro como argumento y devuelve su cubo"""
- return x**3
- if __name__ == "__main__":
- x = float(input("Ingrese un nro: "))
- print(f"El cubo de {x} es {x**3}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement