Huge tip for human readable numbers in python

Hacking Truth


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


└─$ 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 ( ... done
Building wheels for collected packages: numerize
  Building wheel for numerize ( ... 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
Successfully built numerize
Installing collected packages: numerize
Successfully installed numerize-0.12


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.


All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)
Our website uses cookies to enhance your experience. Learn More
Accept !