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

x = a or b

 

Last updated 3 weeks, 1 day ago | 23 views 75     5

Tags:- Python

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