Skip to main content

Una librería simple de Python con operaciones matemáticas básicas.

Project description

Mi-Calculadora

PyPI version License: Apache-2.0

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

This version

1.0

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

If you're not sure about the file name format, learn more about wheel file names.

gdiaz_mi_calculadora-1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file gdiaz_mi_calculadora-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gdiaz_mi_calculadora-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6198203d3b70a30b26f75eb25136820e21cffc392b81cf8e67fc7316b8a1962
MD5 1f1fc1234c3e27a5d3fad1a52912296b
BLAKE2b-256 8e40e29fdc82e3cc79c3f4271cb7c4e293771281da5d6efe2f6d408c1830fc64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page