Jul-19-2021, 10:30 PM
nice!
what i did in C was just deal with the numbers. they were compared in such a way that the shorted number was prefixed by enough '0' characters to make it be the same length as the longer one. it was done as part of the actual character-by-character comparison. that would be the wrong way to do it in Python and i figured the right way was probably already done (so i didn't want to re-invent another wheel). i need to spend more time with module re so i quickly envision how it can solve many problems like this.
what i did in C was just deal with the numbers. they were compared in such a way that the shorted number was prefixed by enough '0' characters to make it be the same length as the longer one. it was done as part of the actual character-by-character comparison. that would be the wrong way to do it in Python and i figured the right way was probably already done (so i didn't want to re-invent another wheel). i need to spend more time with module re so i quickly envision how it can solve many problems like this.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.