Is it the same, better, or worse if we use lists as a simple if-else condition?

Viewed 19

In Python, I have seen people use [option1, option2][condition]. Is that recommended? Will it cause problems later? Will it not matter?

0 Answers
Related