Created
January 5, 2019 07:01
-
-
Save zahash/6f0753209b142f5da54532bd7a1deccc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def only_choice(grid_dict): | |
for unit in unit_list: | |
for num in '123456789': | |
num_places = [box for box in unit if num in grid_dict[box]] | |
if len(num_places) == 1: | |
grid_dict[num_places[0]] = num | |
return grid_dict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment