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

x = a or b

 

Last updated 4 years, 2 months ago | 1874 views 75     5

Tags:- Python

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