(self)
Gets the symbol `P`, `N`, `B`, `R`, `Q` or `K` for white pieces or the
        lower-case variants for the black pieces.
Gets the symbol `P`, `N`, `B`, `R`, `Q` or `K` for white pieces or the
        lower-case variants for the black pieces.
Gets the symbol P N B R Q or K for white pieces or the lower - case variants for the black pieces .
def symbol(self):
        """
        Gets the symbol `P`, `N`, `B`, `R`, `Q` or `K` for white pieces or the
        lower-case variants for the black pieces.
        """
        if self.color == WHITE:
            return PIECE_SYMBOLS[self.piece_type].upper()
        else:
            return PIECE_SYMBOLS[self.piece_type]
def symbol ( self ) : if self . color == WHITE : return PIECE_SYMBOLS [ self . piece_type ] . upper ( ) else : return PIECE_SYMBOLS [ self . piece_type ]