Multiple ChoiceIntermediate 30s
Ternary Expression
Choose the best answer for: Python ternary operator
Options
- 1cond ? x : y
- 2cond -> x ; y
- 3if cond then x else y
- 4x if cond else y
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.