Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
NBA Stats Application
The Helper Function
Core Functions
11. Checking the player-club relationship
Menu Functions
Putting it all together

Instruction

Perfect! Now we'll need a function to check the relationship between a given club and a given player.

Exercise

Create a function named check_player_club_relation(player, club). The function should compare the club string variable with a list of the player's current and former clubs. Based on this comparison, the function should return one of these three strings:

  1. >>> The player is now playing for this club.
  2. >>> The player used to play for this club.
  3. >>> The player has never played for this club.

Stuck? Here's a hint!

To check if a club is among the player's former clubs, use the in operator.