#!/usr/bin/env python3
def remove_item(file_name):
    remove_item = input("Is there anything that you would like to delete? Type `clear` to clear your list. > ")
    if remove_item == "clear":
        clear_file(file_name)
    else:
        with open(file_name,"r") as f:
            read = f.read().split("\n")
        with open(file_name,"w") as f:
            for line in read:
                if remove_item not in line:
                    f.write(line + "\n")

remove_item("x.txt")

ea61663cebd86a7de3946221b90eb8685f6e2843
<mask token>

def remove_item(file_name):
    remove_item = input(
        'Is there anything that you would like to delete? Type `clear` to clear your list. > '
        )
    if remove_item == 'clear':
        clear_file(file_name)
    else:
        with open(file_name, 'r') as f:
            read = f.read().split('\n')
        with open(file_name, 'w') as f:
            for line in read:
                if remove_item not in line:
                    f.write(line + '\n')


<mask token>

def remove_item(file_name):
    remove_item = input(
        'Is there anything that you would like to delete? Type `clear` to clear your list. > '
        )
    if remove_item == 'clear':
        clear_file(file_name)
    else:
        with open(file_name, 'r') as f:
            read = f.read().split('\n')
        with open(file_name, 'w') as f:
            for line in read:
                if remove_item not in line:
                    f.write(line + '\n')


remove_item('x.txt')

#!/usr/bin/env python3
def remove_item(file_name):
    remove_item = input("Is there anything that you would like to delete? Type `clear` to clear your list. > ")
    if remove_item == "clear":
        clear_file(file_name)
    else:
        with open(file_name,"r") as f:
            read = f.read().split("\n")
        with open(file_name,"w") as f:
            for line in read:
                if remove_item not in line:
                    f.write(line + "\n")

remove_item("x.txt")
