Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Modulo que calcula el cuadrado de un numero
- """
- __author__ = "YO"
- __copyright__ = "Curso de Python"
- __credits__ = ["Ana", "Tito"]
- __license__ = "GPL"
- __version__ = "1.0"
- __email__ = "ale@ale.com"
- __status__ = "Development"
- def cuadrado(x):
- """Retorna el cuadrado de un numero"""
- return x**2
- if __name__ == "__main__":
- x = float(input("Dame un nro..."))
- print(f"El cuadrado de {x} es {cuadrado(x)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement