Advertisement
teslariu

square

Jul 31st, 2021
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. """Programa que calcula el cubo de un número"""
  5.  
  6. __author__    = "ALB"
  7. __copyright__ = "Python Programming Sab TT"
  8. __credits__   = ["Seba", "Fabi", "Pedro"]
  9. __license__   = "GPLv3"
  10. __version__   = "1.0"
  11. __email__     = "tatuss@ciudad.com.ar"
  12. __status__    = "Development"
  13.  
  14.  
  15. def cubo(x):
  16.     """Función que toma un nro como argumento y devuelve su cubo"""
  17.     return x**3
  18.    
  19. if __name__ == "__main__":
  20.     x = float(input("Ingrese un nro: "))
  21.     print(f"El cubo de {x} es {x**3}")
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement