def editTodo():
    with open ("todolist", "r") as f:
        lines = f.readlines()
        for line in lines:
            data = line.strip()
            print(f'{data}\n')
            deletion = input("What do you want to delete?")
            if deletion in data:
                with open("todolist") as f:
                    lines = f.read().splitlines()
                    lines.remove()
                print ("Successfully deleted")
This is my function for a to do list to edit their to do list. I want the user to be able to delete one of the items from their todo list but I am getting this error. TypeError: remove() takes exactly one argument (0 given) I am pretty sure there are other errors too, sorry about that.