This is actually in Python 3.6.
You can use the first format you showed:
a = 35_000
because underscores are now an accepted separator in numbers. (You could even say a = 3_5_00_0, though why would you?)
The second method you showed will actually create a tuple. This is the same as saying:
a = (35, 000)
source
share