From da3fcb60c37072f4934ae9a297f6e5363293f769 Mon Sep 17 00:00:00 2001 From: sstent Date: Wed, 15 Nov 2023 20:15:11 +0000 Subject: [PATCH] fixing script intend --- NYT.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/NYT.py b/NYT.py index 3f3c8f5..a6254ef 100644 --- a/NYT.py +++ b/NYT.py @@ -28,14 +28,14 @@ def get_puzzle(difficulty): # Create a file object for this file with open('NYTSudoku.csv', 'a') as f_object: # Pass this file object to csv.writer() - # and get a writer object - writer_object = writer(f_object) - # Pass the list as an argument into - # the writerow() - writer_object.writerow(csvrow) + # and get a writer object + writer_object = writer(f_object) + # Pass the list as an argument into + # the writerow() + writer_object.writerow(csvrow) - # Close the file object - f_object.close() + # Close the file object + f_object.close() if __name__ == '__main__': get_puzzle("hard")