Skip to main content

A library to check if a number is greater, equal or less than the other.

Project description

Laguage: Python

Function: Library

Name: versionCompare

A python library that takes 2 digits as input and then checks if one is greater, equal or less than the other. Example output; 5 is greater than 1

Usage

Import versionComparison from class versionComparison

Create an instance of versionComparison and supply it with the 2 strings as expected in its constructor.

Call compare_versions on the instance, and it will give appropriate result.

-> 1 if version1 > version2

-> 0 if version1 == version2

-> -1 if version1 < version2

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

versionCompare-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

versionCompare-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file versionCompare-0.1.1.tar.gz.

File metadata

  • Download URL: versionCompare-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for versionCompare-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a952a30858526e80b8f42b32e6b5afab00857aaf4b30f7bdaf2091b1ece17eec
MD5 3622179e56bcc80589706a7bef83baf3
BLAKE2b-256 fdc214d941a39297bdb8788a806265500261ca7fe5155583b3d8b10da44a8581

See more details on using hashes here.

File details

Details for the file versionCompare-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: versionCompare-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for versionCompare-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efeb2a2b873ed9ae964f37bc1b91a1a263b3e51b4ebd897ebb8550cf7ad236cd
MD5 e39aca88baaa451345dd045c2496ce4e
BLAKE2b-256 f5f71ded6e55edd2f3ea2db14559de08248dba6d0330ff7c4a010ce81a2abbba

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