Creating a team, adding players and coach
Input
t = Team('Rovers') t.add_player(Player('Alice', 'Forward', 50000)) t.set_coach(Coach('Sam', 8)) (t.get_roster(), t.total_salary(), t.coach_experience())
Output
(['Alice'], 50000, 8)
Team holds a player and a coach. get_roster returns player names in add order, total_salary sums player salaries, coach_experience returns the coach's years of experience.