src/api/todos/endpoints.py
def delete(self, id):
        '''Delete a task given its identifier'''
        for todo in todos:
            if todo['id'] == id:
                todos.remove(todo)
                return '', 204
        api.abort(404, "Todo {} doesn't exist".format(id))
Delete a task given its identifier
Delete a task given its identifier
Delete a task given its identifier
def delete(self, id):
        for todo in todos:
            if todo['id'] == id:
                todos.remove(todo)
                return '', 204
        api.abort(404, "Todo {} doesn't exist".format(id))
def delete ( self , id ) : for todo in todos : if todo [ 'id' ] == id : todos . remove ( todo ) return '' , 204 api . abort ( 404 , "Todo {} doesn't exist" . format ( id ) )
Delete a task given its identifier
Delete a task given its identifier
'''Delete a task given its identifier'''
self
id