See that? The in keyword returns True if nicknames contains a value and False if, well, it doesn't.
in
True
nicknames
False