Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Remember the ternary condition syntax : expr1 if condition else expr2 That means that an else is always required while using a ternary condition.
23rd May 2020, 10:31 PM
Théophile
Théophile - avatar