This language is python and I have no idea where to start. Sinceit requires the average, you should take all integers intoconsideration. As for valid or invalid, I’m going to assume validfiles because the instructions didn’t state otherwise.
#Write a function called average_file. average_file should
#have one parameter: a filename.
#
#The file should have an integer on each line. average_file
#should return the average of these integers. However, if
#any of the lines of the file are _not_ integers,
#average_file should return the string “Error reading file!”
#
#Remember, by default, every time you read a line from a
#file, it’s interpreted as a string.
#Add your function here!
#Below are
PayPal Gateway not configured
PayPal Gateway not configured