old_version/solver.py
def digit_in_square(self, digit: int, square_number: int) -> bool:
        """
        Checks if number is already in square.
        :param digit: number we are evaluating
        :param square_number: index of square in list of sqares' coordinates
        :return: bool
        """
        return digit in self.s.array[
                        self.s.squares[square_number].row_start: self.s.squares[square_number].row_stop,
                        self.s.squares[square_number].column_start: self.s.squares[square_number].column_stop,
                        ]

        Checks if number is already in square.
        :param digit: number we are evaluating
        :param square_number: index of square in list of sqares' coordinates
        :return: bool
        
Checks if number is already in square.
Checks if number is already in square .
def digit_in_square(self, digit: int, square_number: int) -> bool:
        return digit in self.s.array[
                        self.s.squares[square_number].row_start: self.s.squares[square_number].row_stop,
                        self.s.squares[square_number].column_start: self.s.squares[square_number].column_stop,
                        ]
def digit_in_square ( self , digit : int , square_number : int ) -> bool : return digit in self . s . array [ self . s . squares [ square_number ] . row_start : self . s . squares [ square_number ] . row_stop , self . s . squares [ square_number ] . column_start : self . s . squares [ square_number ] . column_stop , ]
Checks if number is already in square.
Checks if number is already in square .
"""
        Checks if number is already in square.
        :param digit: number we are evaluating
        :param square_number: index of square in list of sqares' coordinates
        :return: bool
        """
None
self
digit
int
number we are evaluating
number we are evaluating
square_number
int
index of square in list of sqares' coordinates
index of square in list of sqares ' coordinates