Computer Science, asked by hamanidb6113, 11 months ago

How can we use Python Ternary Operator Without else?

Answers

Answered by Student213
0

How can we use Python Ternary Operator Without else? If <condition> is false, then short-circuiting will kick in and the right-hand side won't be evaluated. If <condition> is true, then the right-hand side will be evaluated and <some-code> will be evaluated.

Similar questions