Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
NBA Stats Application
The Helper Function
7. Creating a clubs list
Core Functions
Menu Functions
Putting it all together

Instruction

Great job! Now we need to take care of club data. There are only two helper functions left!

Exercise

Create a function named return_sorted_clubs(players) that takes the players list (as shown in the template) and returns a sorted list of all clubs for which the players play or used to play.

Stuck? Here's a hint!

For each player in the players list, the club in which they play is player[5], and the clubs in which they have played before are elements of the player[6] list.