module for comparing to strings
Project description
Compare strings
- A python library for comparing 2 strings
- in the case of str1 = str2 returned value would be
1
- in the case of str1 > str2 returned value would be
0
- in the case of str1 < str2 returned value would be
-1
Installation:
pip3 install compare_strings_lib
Usage:
from strings.compare import compare
result = compare("1.2", "1.1")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for compare_strings_lib-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d621f790e5935324998184c7a176154e2c6e9f1f095e683ada8f9f48d57622b |
|
MD5 | bdd0a03acd18cc8e8ce0be97058e9913 |
|
BLAKE2b-256 | 3b317638d1aa2c73a1f1305115254a1386d65ff109778f3d723fb7bf1d4bbb1d |
Close
Hashes for compare_strings_lib-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcda2853d2a0495f750a75c16b79a7c4c6ef850924d1e66185a402098ecb5de5 |
|
MD5 | 41e18dae2bc5cc87119a69d8ce7da1cc |
|
BLAKE2b-256 | a02ad953dd4a1dbed120f1c22dc3e9ee2aad4c9a09442bb3e24e410dfe41e023 |