Integer Trick That Beats 99% of Python Coders

preview_player
Показать описание
Did you know you could add underscores in integers in Python to improve readability?
Рекомендации по теме
Комментарии
Автор

Also never forget to comment why constants exist ❤

lumlins
Автор

That's why I have trust issues with scripting languages

samannoyb
Автор

You can also use index notation for extra large numbers, which makes it 10x easier if you can understand index notation

n = 1.5*10**6
or
n = 15*10**5

jxke
Автор

Do you know if this works on C++ or Java?

kiniro