Skip to content

Tag: Python

Ternary operator in Python

Python has no ternary operator like in other languages, but a far more readable alternative (since version 2.5), and you can use it like that:

Leave a Comment