Is there any inherent difference between these two python negations

66 Views Asked by At
>>> a = [1, 2, 3]
>>> 4 not in a
True
>>> not 4 in a
True

Is there any foolproof way to remember 1. when to use which and 2. which is more prone to errors?

0

There are 0 best solutions below