Skip to main content

A quirky command-line calculator

Project description

Nonsense Calculator

Nonsense is a quirky command-line calculator that handles basic arithmetic, parentheses, exponentiation, and supports the ans keyword to reuse the last result. It's designed for fun and simplicity, perfect for quick calculations in the terminal.

Features

  • Handles +, -, *, /, %, **/^ with correct operator precedence
  • Supports floats and multi-digit numbers
  • Parentheses supported: e.g., (2+3)*4
  • Reuse the last answer with ans
  • Colorful terminal output if colorama is installed

Installation

pip install nonsense-cli

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

nonsense_cli-1.4.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

nonsense_cli-1.4.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file nonsense_cli-1.4.1.tar.gz.

File metadata

  • Download URL: nonsense_cli-1.4.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nonsense_cli-1.4.1.tar.gz
Algorithm Hash digest
SHA256 6fa75727a61d1022c504fbd3d520aefdd4618e9c80195dba46562330a5c2c49c
MD5 cda54814c94abec618fe4f38dca27097
BLAKE2b-256 d3f030472b1a93cb900d232acc9ca7da515d4c297c5f8402f0d92da9c6e78a01

See more details on using hashes here.

File details

Details for the file nonsense_cli-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: nonsense_cli-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nonsense_cli-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc5b9589e7842902e131d61c3d4a62f6124809cb1316157fa34ea5e4788af51
MD5 29c1ab772be6675ac8e01c7b83576869
BLAKE2b-256 bd3a591ea6def7a5bc09add38d0ebcbc1cb757ed74089751db4be8fae4cc1f37

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