3 ms·
> Python has the same "rightward conditional" thing. No, python writes the ternary operator with words, it doesn't have rightward conditionals. The key differ
by dragonwriter 6y ago
> Python has the same "rightward conditional" thing.
No, python writes the ternary operator with words, it doesn't have rightward conditionals.
The key difference is that the else clause is required in the Python ternary, where it's optional in a conditional.
- war1025 6y agoDoesn't make it any less irritating.