CSCI 1301 Study Guide - Quiz Guide: Migos, Wireless Emergency Alerts
Document Summary
File - the name of the . txt file. This problem won"t be too clever, it"s just your average problem description. Anyways, the text file we will use has numbers in it, each number is saved on a separate line. Write a function that reads in a filename and prints out the average of the numbers in the file. *hint: remember that the numbers will be read out of the file as a string , and we cannot take the average of a string. The average of the number in the file is 28. 0. The average of the number in the file is 75. 0. By the time this homework drops, it will be payday, which is good because khalil has almost completely run out of groceries. In fact the only things left are defined in these text files: list1. txt and list2. txt .