a good way to remember Python's order of operations:
a = lambda: b or c and not d in e is f != g == h < i | j ^ k & l << m + n * o ** p ** -q
the entire line is evaluated right-to-left.
(** is put in there twice to show that it's right-associative.)