Best April deals - hours only!Up to 80% off on all courses and bundles.-Close
NBA Stats Application
The Helper Function
Core Functions
Menu Functions
15. Menu option – check player-club relationship
Putting it all together


Perfect! Let's move on to checking the relationship between a player and a club.


Create a function named show_relation_player_club(players). The function should do the following:

  1. Get a player's index from the user. Use the get_player_index(players) function.
  2. Get a club index from the user. Use the get_club_index(clubs) function.
  3. Print the relationship between the player and the club. Use the check_player_club_relation(player, club) function.

Stuck? Here's a hint!

Once you get the player index and the club name from the user, use:

print(check_player_club_relation(players[player_index], clubs[club_index]))