This is what's supposed to happen:
I made a text file called "Test" in my desktop and when the program runs the file is supposed to be deleted.
Here is the code:
#Basic antivirus import os MD5_hashes = "virus viruses 101010".split() def main(): FILE = open(test.txt, "r") if MD5_hashes in FILE: os.remove main()
Now the text file contains All the MD5 Hashes but I keep getting this error:
File "C:/Users/EHZIAL/Desktop/AV.py", line 7, in main
FILE = open(test.txt, "r")
NameError: global name 'test' is not defined