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.1.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.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gdiaz_my_calc_2025-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 90b9df875f240cee6a5de8dc25df1bf2c84013e94b6754c06e6487166f8d43c3
MD5 f8660b27ace78a8266644210b0ffc8ac
BLAKE2b-256 2c8e466f4969ac903458a7484a27cca5f6b5716187459efc86956ea83739d31f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gdiaz_my_calc_2025-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd84d81a675f1adcd530d90f842dd65fa7ae3c887de740efc57e1cd95707930
MD5 280f5fac3da3ee10d0677cf0128f9a6d
BLAKE2b-256 5b936006830a3e233a74540b9cfc8a8f3ee008491fe25da74ecdf22fd694e3e6

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