This commit is contained in:
David Vereb 2021-12-07 09:25:57 -05:00
parent db91c72db1
commit e13effbe75
2 changed files with 4 additions and 0 deletions

View File

@ -599,3 +599,4 @@
68 36 4 24 71
43 31 60 19 95
52 55 13 83 78

View File

@ -56,6 +56,9 @@ with open('data', 'r') as fp:
else:
# add the next array of numbers to the temporary board object
temp_board.append(line.strip().split())
if(len(temp_board)):
print('ERROR: You must have an empty line at the end of your data.')
exit()
winning_number,winning_board_index = FindWinner(numbers)
print('Winning Number:', winning_number, ', Winning Board Index: ', winning_board_index)