Skip to content

Commit 18f34cc

Browse files
authored
Update solution.hide.py
1 parent 813ed25 commit 18f34cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.learn/exercises/08.2-finish-todos/solution.hide.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def add_new_todo():
1616

1717
@app.route('/todos/<int:position>', methods=['DELETE'])
1818
def delete_todo(position):
19-
print("This is the position to delete: ",position)
19+
print("This is the position to delete:", position)
2020

21-
todos.pop((position-1))
21+
todos.pop(position)
2222

2323
return jsonify(todos)
2424

25-
# These two lines should always be at the end of your app.py file.
25+
# These two lines should always be at the end of your app.py file
2626
if __name__ == '__main__':
27-
app.run(host='0.0.0.0', port=3245, debug=True)
27+
app.run(host='0.0.0.0', port=3245, debug=True)

0 commit comments

Comments
 (0)