1_000_000_000 = 1000000000

Kelvin Wangonya - Oct 25 '19 - - Dev Community

With Python 3.6+, you can make long numbers in your code more legible by separating the digits with underscores.

Python 3.7.4 

>>> x = 1_000_000_000 
>>> x
1000000000
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .