CSCI 150 - Foundations of Computer Science

Fall 2013

Programming Exercises: Chapter 5, part 7


Example of using these functions:
>>> roster = [['Larry Bird', 20, 10], ['Charles Barkley', 30, 5], ['Michael Jordan', 40, 1]]
>>> basketballOutput(roster, 'players1.txt')
>>> basketballInput('players1.txt')
[['Larry Bird', 20, 10], ['Charles Barkley', 30, 5], ['Michael Jordan', 40, 1]]