3 ms·
Python3 Allows you to put underscores in numbers for legibility: a = 100_000 b = 1_000_000
by atomoton 7y ago
Python3 Allows you to put underscores in numbers for legibility:
a = 100_000
b = 1_000_000
- Someone 7y agoThat started at least with Ada, in 1979 (https://softwareengineering.stackexchange.com/a/403959 https://softwareengineering.stackexchange.com/a/403959). Traditional FORTRAN ignores all spaces, so one can write a million as 1 000 000 there, C++14 allows apostrophes (https://en.wikipedia.org/wiki/Decimal_separator#Data_versus_mask https://en.wikipedia.org/wiki/Decimal_separator#Data_versus_...)