mirror of
https://github.com/sstent/NYT_Sudoku.git
synced 2025-12-06 06:01:41 +00:00
fixing script intend
This commit is contained in:
14
NYT.py
14
NYT.py
@@ -28,14 +28,14 @@ def get_puzzle(difficulty):
|
|||||||
# Create a file object for this file
|
# Create a file object for this file
|
||||||
with open('NYTSudoku.csv', 'a') as f_object:
|
with open('NYTSudoku.csv', 'a') as f_object:
|
||||||
# Pass this file object to csv.writer()
|
# Pass this file object to csv.writer()
|
||||||
# and get a writer object
|
# and get a writer object
|
||||||
writer_object = writer(f_object)
|
writer_object = writer(f_object)
|
||||||
# Pass the list as an argument into
|
# Pass the list as an argument into
|
||||||
# the writerow()
|
# the writerow()
|
||||||
writer_object.writerow(csvrow)
|
writer_object.writerow(csvrow)
|
||||||
|
|
||||||
# Close the file object
|
# Close the file object
|
||||||
f_object.close()
|
f_object.close()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
get_puzzle("hard")
|
get_puzzle("hard")
|
||||||
|
|||||||
Reference in New Issue
Block a user