When I run this I get an invalid syntax error with the "=" part of the "!=" sign highlighted
I don't think it's a syntax problem on that line per say because I tried using a "==" sign and I still got the same error with the second "=" sign being highlighted
def delete(line_number):
    src = "userinfo.txt"
    dest = "tempfile.txt"
    counter = 1
    with open(src, "r") as input:
        with open(dest, "w") as output: 
            for line in input:
                if counter++ != line_number:
                    output.write(line)
 
     
    