Your function is correctly returning a list of at most 'num' lines in the file. There were no blank lines. You might want to recheck other parts of the program.
Reputation Points: 72
Solved Threads: 15
Junior Poster in Training
Offline 64 posts
since Jan 2008