Define a function called articleStats() that takes a string parameter named fileName representing the name of a file. The file contains lower case words separated by spaces. The function returns the total number of all articles. An article is one of the following words: a, the, an.
I know this is a pretty simple question but I'm just really confused on what it is that I am doing wrong. This is what I have so far, but I know it's wrong
def articleStats(filename):
filename.split()
for word in filename:
if 'a' or 'the' or 'an' in word:
print(len(filename))
articleStats('an apple a day keeps the doctor away')