Huge tip for human readable numbers in python
here's one tip for making large numbers ext remely readable in Python first you need to install and import numerize then we can create a number and call n Dot numerize and whatever number.
first install numerize pkg
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop] └─$ pip install numerize 1 ⨯ Defaulting to user installation because normal site-packages is not writeable Collecting numerize Downloading numerize-0.12.tar.gz (2.7 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: numerize Building wheel for numerize (setup.py) ... done Created wheel for numerize: filename=numerize-0.12-py3-none-any.whl
size=3175 sha256=9f5884db10b1b69eecef0b9101e4c9b7f536bd5c26e56d2c1ef12a9cf97601b9 Stored in directory: /home/hackerboy/.cache/pip/wheels/87/84/e1/9e30f2e3da6590a
cb0f1c03a806e2673d2f9e7f5bd2b11589a Successfully built numerize Installing collected packages: numerize Successfully installed numerize-0.12 ┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop] └─$
we decide to include inside here is going to be converted to something human
readable so here we'll type in print number and when we run this we'll get
1.78 K and this works really nice with larger numbers such as 10 69 69 69 and
if we run that we'll get 10.7 million a number that a lot of us can read
easily.