top | item 42787955 (no title) hyrix | 1 year ago The answer is obviously because programmers want to be able to write f”{n} result{‘s’ if n == 1 else ‘’}” discuss order hn newest thfuran|1 year ago Then they had best steer well clear of Poland. isodev|1 year ago Must be the same programmers that make it impossible for me to sign into places with all the diacritics in my name. remram|1 year ago > f"{n} result{'s' if n == 1 else ''}"n>1 is even shorter than n!=1(also you wrote == instead of != your code is backwards) antiframe|1 year ago But the whole point is that "0 result" is not correct but "0 results" is. load replies (1) DonHopkins|1 year ago That makes -infinity ... -1 singular too.
isodev|1 year ago Must be the same programmers that make it impossible for me to sign into places with all the diacritics in my name.
remram|1 year ago > f"{n} result{'s' if n == 1 else ''}"n>1 is even shorter than n!=1(also you wrote == instead of != your code is backwards) antiframe|1 year ago But the whole point is that "0 result" is not correct but "0 results" is. load replies (1) DonHopkins|1 year ago That makes -infinity ... -1 singular too.
antiframe|1 year ago But the whole point is that "0 result" is not correct but "0 results" is. load replies (1)
thfuran|1 year ago
isodev|1 year ago
remram|1 year ago
n>1 is even shorter than n!=1
(also you wrote == instead of != your code is backwards)
antiframe|1 year ago
DonHopkins|1 year ago