Una librería simple de Python con operaciones matemáticas básicas.
Project description
Mi-Calculadora
Librería Python simple con operaciones matemáticas básicas (suma, resta, multiplicación, división).
Instalación
Instala desde PyPI usando pip (asegúrate de usar el pip asociado a Python 3):
python3 -m pip install mi-calculadora
import mi_calculadora
# Operaciones
suma = mi_calculadora.sumar(10, 5) # 15
resta = mi_calculadora.restar(10, 5) # 5
multi = mi_calculadora.multiplicar(10, 5) # 50
div = mi_calculadora.dividir(10, 5) # 2.0
print(f"Suma: {suma}, Resta: {resta}, Multi: {multi}, Div: {div}")
# Manejo de errores
try:
mi_calculadora.dividir(10, 0)
except ValueError as e:
print(f"Error: {e}") # Error: No se puede dividir por cero.
# Versión
print(f"Versión: {mi_calculadora.__version__}") # 0.1.0 (o la versión actual)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdiaz_mi_calculadora-1.0-py3-none-any.whl.
File metadata
- Download URL: gdiaz_mi_calculadora-1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6198203d3b70a30b26f75eb25136820e21cffc392b81cf8e67fc7316b8a1962
|
|
| MD5 |
1f1fc1234c3e27a5d3fad1a52912296b
|
|
| BLAKE2b-256 |
8e40e29fdc82e3cc79c3f4271cb7c4e293771281da5d6efe2f6d408c1830fc64
|