Re-write the initGroup() function of your program in the previous exercise so that it will read Students' names from a text file, instead of hardwired these data in your program. With the new __str__() method, your program should be smart enough to show all the students' names in a correct way.

Test your class with the following main program:


def main():
    fn = input("File name? ")
    group = initGroup(fn)
    for s in group:
        print(s)

main()