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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdiaz_my_calc_2025-1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

gdiaz_my_calc_2025-1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file gdiaz_my_calc_2025-1.0.tar.gz.

File metadata

  • Download URL: gdiaz_my_calc_2025-1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for gdiaz_my_calc_2025-1.0.tar.gz
Algorithm Hash digest
SHA256 411fed736a85d9ef16c690478ca15095eaa216075c6a2d3f62d6bcb6a7539fd4
MD5 45950a561023d91ef15394125ca1b24b
BLAKE2b-256 26dcb64aaec5c2e721c7feec249821ef059d26845b5f24743c86cc9ff7882404

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gdiaz_my_calc_2025-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 617f69d648139c10b6ccca2cf947fa00af683c97626dade125b010dbe709d144
MD5 5a1665b7317049228f8a08bfd1fad0fe
BLAKE2b-256 b5752ac933a54fa690bee424913135b50847a5de7dde991f2a48a6a950bcf0e8

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