1_000_000_000 = 1000000000

October 25, 2019 · 1 minute read

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