I have a class of variables that are being assigned None
at instantiation. I've manually hardcoded data assignments to some of these variables, and am trying to evaluate whether or not they exist.
So basically I've set my_class.first_col = 4
. The instantiation part looks essentially like:
def __init__(self):
self.first_col = None
When I run this with the manual set to 4: print(my_class.first_col == True)
it returns False
. What's the proper way to see if that variable is assigned to something other than None
?