On line 22, create a function named print_player(player)
that accepts a player's tuple and prints all the player's data in the following format:
>>>>>>>>
>> {firstname} {lastname} ({height} in)
>> Matches: {matches}, field goals: {fg}%, current club: {current_club}
>> Former clubs: {former_clubs}
The first line contains eight >
signs. The second, third, and fourth lines all start with two >
signs, which are followed by one space. Player data should look like this:
>>>>>>>>
>> Marcin Gortat (83 in)
>> Matches: 82, field goals: 51.8%, current club: LA Clippers
>> Former clubs: ['LKS Lodz', 'RheinEnergie', 'Orlando Magic', 'Anaheim Arsenal', 'Phoenix Suns', 'Washington Wizards']
If the player
argument is None
, print:
No player to show.