<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def team_players(self, team):
 """Prints the team players in a pretty format"""

        players = sorted(team, key=lambda d: d['shirtNumber'])
        click.secho("%-4s %-25s    %-20s    %-20s    %-15s" %
                    ("N.",  "NAME", "POSITION", "NATIONALITY", "BIRTHDAY"),
                    bold=True,
                    fg=self.colors.MISC)
        fmt = (u"{shirtNumber:<4} {name:<28} {position:<23} {nationality:<23}"
               u" {dateOfBirth:<18}")
        for player in players:
            click.secho(fmt.format(**player), bold=True)