I am new in python and creating a class which have few variables but in my process method in want check whether few member variables are being set or not. Just like java script undefined or if i can set null. I don't want to use any default values: how i can check null or undefined?
class MyClass:
  def __init__(self, name, city):
      self.name = name
      self.city = city
  def setState(self,state)
      self.state = state
  def process(self):
      print("Name:", name)
    # here i want check whether state is being  set or not. 
    # How can i do it. I tried  if self.state is None but getting 
    # exception AttributeError. 
 
     
    