You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some empty strings result in 1 when using the Python-style truthify builtin Ā.
If we use an empty string directly (õ), it works fine and correctly results in 0.
But if we use it on an empty input or on the maximum of an empty list it incorrectly results in 1. Try it online to reproduce.
Some empty strings result in
1
when using the Python-style truthify builtinĀ
.If we use an empty string directly (
õ
), it works fine and correctly results in0
.But if we use it on an empty input or on the maximum of an empty list it incorrectly results in
1
.Try it online to reproduce.
I came across it in this codegolf answer of mine.
The text was updated successfully, but these errors were encountered: