How can we use Python Ternary Operator Without else?
Answers
Answered by
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
Science,
7 months ago
Computer Science,
7 months ago
Hindi,
7 months ago
Computer Science,
1 year ago
English,
1 year ago