This isn't about engineering or science so that point doesn't matter, honestly.
I realize that engineers/scientists will use python. When they do that they are functioning as developers/software engineers (those are just facts)and as such they should get comfortable dealing with the software development side of the software development they are doing.
There are rules about how these numbers work that mean the world to developers and software engineers (this is the place this matters and so these are the concerns that dictate how it is done) to the point that there is an entire standard built around it that will answer all your questions (including the ordering one):
The problem is people treating "." as decimal point instead of "arbitrary separator that happens to be a period".
Limiting oneself to "3.9" is ambiguous. But how do you consider "3.9.1"? Or to use latest Python stable, "3.8.5"?
When facing version numbers, one must split on this "arbitrary separator that happens to be a period" first, integer-ize the portions, tuple-ify the result ... then perform a comparison.
-3
u/Leav Sep 16 '20
Because 3.10 = "3.1 with more precision" to engineers and scientists and basically all non-developer users.
How would python sort these lists: [3.8,3.9,3.10] or ["3.8","3.9","3.10"]?