I don't like the solution template they propose because it will likely stall users from creativly solving the problem. I also don't think this is an idomatic solution to the problem in a pythonic way.
You're going from file->list->for loop when you can just go file->for loop.