Programming, Python, Algorithms, Python Programming, Computer Science.
backtracking_search(self, assignment: Dict[V, D] = {}) -> Optional[Dict[V, D]]: # assignment is complete if every variable is assigned (our base case) if len(assignment) == len(self.variables): return assignment # get all variables in the CSP but not in the assignment unassigned: List[V] = [v for v