produce a function processFile(filelnName,fileOutName):that will…
Question Answered step-by-step produce a function processFile(filelnName,fileOutName):that will… produce a function processFile(filelnName,fileOutName):that will read a file withany number of lines containing any number of integers (could differ) per line. Find the average of all ofthe integer values and write the calculated values for sum, count and avg to an output file like this:>›> processFile(“testIn.txt”,”testOut.txt”)sum: 382count: 10avg: 38.2 Computer Science Engineering & Technology Python Programming CS 150 Share QuestionEmailCopy link Comments (0)


