String splitting divides text wherever a chosen separator appears and returns the resulting pieces as a list. In Python, call it with string.split(separator). section 5.1.4
Reading comma-separated file data
After reading a line from an NFL statistics file, line.split(',') separates its columns. The resulting list lets you inspect values such as lst[0] for the game ID, lst[3] for the player, and lst[7] for passing yards. A loop can repeat this process for every line before the file is closed. section 5.1.4










