We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813ed25 commit 18f34ccCopy full SHA for 18f34cc
.learn/exercises/08.2-finish-todos/solution.hide.py
@@ -16,12 +16,12 @@ def add_new_todo():
16
17
@app.route('/todos/<int:position>', methods=['DELETE'])
18
def delete_todo(position):
19
- print("This is the position to delete: ",position)
+ print("This is the position to delete:", position)
20
21
- todos.pop((position-1))
+ todos.pop(position)
22
23
return jsonify(todos)
24
25
-# These two lines should always be at the end of your app.py file.
+# These two lines should always be at the end of your app.py file
26
if __name__ == '__main__':
27
- app.run(host='0.0.0.0', port=3245, debug=True)
+ app.run(host='0.0.0.0', port=3245, debug=True)
0 commit comments