Python - 5 Cool Tricks
1. Readable long number
If you are declaring a long number (eg. 10 million) in your code, it would be much harder for other guys to read it (10000000 ❌). So to avoid this, python has a special feature for you. You can split the numbers with "_". This...
blog.maransowthri.dev3 min read
Catalin Pit
Great article!
Actually, JavaScript will add the underscores to improve the readability of long numbers in ES2021 too. 🤩