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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed5e6e401c245f1844693b09050576dbde042721c7ba62fd13b6afd1c2ad1b89 |
|
MD5 | 3aee2092b45ec5fde1cb2079804f2fa5 |
|
BLAKE2b-256 | e84e20deabc6707579fd6f8fbefa3f2aae24f455588fc4c546df7ebd8cea38fa |
Close
Hashes for compare_strings_lib-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2390417c21ee97545287ced0f9d420f0e94a88300b266766a055eb3785a905e0 |
|
MD5 | 06d8d316ed395eb2b2f90ef39e9c5ffd |
|
BLAKE2b-256 | ee96d80beb4be15b2084e2a8ad1adecc710a1edb43eecae5b18bed7519054e5c |