Answer:import functools
# open your file
file = open("integers.txt", 'r')
file = file.read()
# put numbers into a list
file = file.split()
# convert list into integers
file = list(map(int, file))
# use lambda function to get average.
print(functools.reduce(lambda x, y: x+y / len(file), file, 0))
Explanation: