Line 2 – 5: Defined initializer for Player
Line 9 – 11: Defined initializer for Team, which also contains a list of players
Line 13 – 14:getNumberOfPlayers() returns the length of the list, players
Line 16 – 17: addPlayer() appends a Player object in the players list
Line 21 – 23: Defined initializer for School, which also contains a list of teams
Line 25 – 26: addTeam() appends a Team object in the teams list
Line 28 – 32:getTotalPlayersInSchool returns the total number of players in the school by adding the length of all the players list in the teams list
Line 35 – 38: Created four Player objects
Line 40: Created a Team object, red_team.
Line 41 – 42: Added two Player objects in the red_team's players list
Line 44: Created a Team object, blue_team.
Line 45 – 46: Added two Player objects in the blue_team's players list
Line 48: Created a School object, mySchool.
Line 49 – 50: Added two Team objects in the mySchool's teams list