I'm trying to compare two .txt files for changes or deleted lines. If its deleted I want to output what the deleted line was and if it was changed I want to output the new line. I originally tried comparing line to line but when something was deleted it wouldn't work for my purpose:

```
for line1 in f1:
    for line1 in f2:
        if line1==line1:
            print("SAME",file=x)
        else: 
            print(f"Original:{line1} / New:{line1}", file=x)

```

Then I tried not comparing line to line so I could figure out if something was deleted but I'm not getting any output:

```
def check_diff(f1,f2):
    check = {}
    for file in [f1,f2]:
        with open(file,'r') as f:
            check[file] = []
            for line in f:
                check[file].append(line)
    diff = set(check[f1]) - set(check[f2])
    for line in diff:
        print(line.rstrip(),file=x)

```

I tried combining a lot of other questions previously asked similar to my problem to get this far, but I'm new to python so I need a little extra help. Thanks! Please let me know if I need to add any additional information.