About Methods of Numbers

You can call methods for number objects by adding a space before a dot and method name:

1
2
>>> 1_000_000 .__str__()
'1000000'

Tips and Tricks Programming Python 3