What does an x = y or z assignment do in Python?

x = a or b

 

Last updated 3 years, 9 months ago | 1719 views 75     5

Tags:- Python

If bool(a) returns False, then x is assigned the value of b.