In the application I am currently developing in python3, I often use statements like
elem_in_list = elem in list
But sometimes I need to check whether the element is not in the list. Is there a performance differece between
elem_not_in_list = not elem in list
and
elem_not_in_list = elem not in list
or is it just the same? Is one of the notations preferable?