basketballRoll(). Using a
while loop, it will request names, points, and assists for
each player on a basketball team. It will then return a list containing
this data:
>>> roster = basketballRoll() Enter name:Larry Bird Enter points:20 Enter assists:10 Enter name:Charles Barkley Enter points:30 Enter assists:5 Enter name:Michael Jordan Enter points:40 Enter assists:1 Enter name: >>> roster [['Larry Bird', 20, 10], ['Charles Barkley', 30, 5], ['Michael Jordan', 40, 1]]
basketballStats(roll). Using a
for loop, it will traverse a list of lists containing names, points, and assists for
each player on a basketball team. It will then print the name and
record for the players with the highest points and highest assists. Continuing the above example:
>>> basketballStats(roster) Most points: ['Michael Jordan', 40, 1] Most assists: ['Larry Bird', 20, 10]