For newer python people, they see return a or b and typically think it returns a boolean if either is True. Nope. Returns a if a is truthy and then checks if b is truthy. If neither are truthy, it returns b.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: