# Checking validity of each filefor file in directory:
content = file.read()
for keywords in ("heil hitler","hitler did nothing wrong","kill the jews","hitler was the victim","there is no evidence for the Holocaust"):
if keywords in content:
returnTrue# File is Invalid and fake newsreturnFalse
# Checking validity of each file for file in directory: content = file.read() for keywords in ("heil hitler","hitler did nothing wrong","kill the jews","hitler was the victim","there is no evidence for the Holocaust"): if keywords in content: return True # File is Invalid and fake news return False