What is the most efficient way to implement ternary conditional operator in Python? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the most efficient way to implement ternary conditional operator in Python?

If there is no ternary conditional operator in Python, is it possible to simulate it using other language constructs?

1st May 2019, 7:50 AM
Dmytro Novak
Dmytro Novak - avatar
0 Réponse