code: def printer(self):
          
          print " ID " + repr(self.id)
          if self.type == 0:
              print " Tag: - "
              print " Start State - "
          elif self.type == 1:
              print " Push " + repr(self.sym)
          elif self.type == 2:
              print " Pop State " + repr(self.sym)
          elif self.type == 3:
              print " Read State " + repr(self.sym)
          elif self.type == 4:
              print " Stop State " + repr(self.sym)
          for j in self.trans:
              if len(self.trans[j]) > 1 or (len(self.trans[j]) == 1):
                  for symbol in self.trans[j]:
                      print " On Symbol " + repr(symbol) + " Transition To State " + repr(j)
docs: Prints PDA state attributes