Fix Python – How can I obtain the element-wise logical NOT of a pandas Series?

I have a pandas Series object containing boolean values. How can I get a series containing the logical NOT of each value?
For example, consider a series containing:
True
True
True
False

The series I’d like to get would contain:
False
False
False
True

This seems like it should be reasonably simple, but apparently I’ve misplaced my mojo =(
….

Fix Python – How to test multiple variables for equality against a single value?

I’m trying to make a function that will compare multiple variables to an integer and output a string of three letters. I was wondering if there was a way to translate this into Python. So say:
x = 0
y = 1
z = 3
mylist = []

if x or y or z == 0:
mylist.append(“c”)
if x or y or z == 1:
mylist.append(“d”)
if x or y or z == 2:
mylist.appen….