Instruction
That's right! Now, we'll focus on a function which will show clubs' top players.
Exercise
Create a function named show_top_player_in_club(players, clubs). The function should:
- Get a club from the user. Use the
get_club_index(clubs)function. - Get a parameter from the user. Use the
get_param_from_user()function. - Print the best player in the given club, based on the given parameter. Use the
find_best_in_club(players, club, user_param)andprint_player(player)functions.
You can re-use the functions you created previously.
Stuck? Here's a hint!
Add one to the user choice to get the actual tuple index you need:
user_choice = get_param_from_user() + 1
You can get a club name in a following way:
clubs[club_index]



