Redundant comments here
Lines: 11 12 17 83 93
with open(DATA_FILE, "w") as f: # gives program write permissions
json.dump([], f) # initializes to empty list
json.dump([], f) # initialize as empty JSON list
deleted_item = item # save item to include in response
'item': deleted_item # include deleted item
These comments explain fairly obvious parts of the code and in the case of 12 and 17 and 83 and 93 are repetitive with each other.
Redundant comments here
Lines: 11 12 17 83 93
json.dump([], f) # initialize as empty JSON list
deleted_item = item # save item to include in response
'item': deleted_item # include deleted item
These comments explain fairly obvious parts of the code and in the case of 12 and 17 and 83 and 93 are repetitive with each other.