You missing the underscores on numbers like 1_000. Good post.
1_000
@juan Thanks for letting know, This is kind of a fun new feature in Python 3.6 - In this basically we can write long numbers with underscore where the comma normally would be -
>>> 9_89_1212 9891212 >>> '{:_}'.format(9891245) '9_891_245' >>> '{:_}'.format(987654321) '987_654_321'
The number with the underscore behave the same as a normal number do during calculation-
>>> 987_654_321 - 9_891_245 977763076 >>> >>> 987_654_321 + 9_891_245 997545566
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You missing the underscores on numbers like
1_000
.Good post.
@juan Thanks for letting know, This is kind of a fun new feature in Python 3.6 -
In this basically we can write long numbers with underscore where the comma normally would be -
The number with the underscore behave the same as a normal number do during calculation-