This document defines classes for players in a cricket tournament and methods to retrieve player data. The Player class initializes player attributes like name, team, type, captain status, runs, and wickets. The Tournament class initializes a player list and contains methods to get player lists or points by type and points threshold, or get a dictionary of player names and points by team and points threshold. The main function gets input to populate the player list, then calls the Tournament methods to output selected players or their points.
Original Description:
Original Title
DIVI POORNACHANDRA RAO Hands on Question 1 Final Code (2)
This document defines classes for players in a cricket tournament and methods to retrieve player data. The Player class initializes player attributes like name, team, type, captain status, runs, and wickets. The Tournament class initializes a player list and contains methods to get player lists or points by type and points threshold, or get a dictionary of player names and points by team and points threshold. The main function gets input to populate the player list, then calls the Tournament methods to output selected players or their points.
This document defines classes for players in a cricket tournament and methods to retrieve player data. The Player class initializes player attributes like name, team, type, captain status, runs, and wickets. The Tournament class initializes a player list and contains methods to get player lists or points by type and points threshold, or get a dictionary of player names and points by team and points threshold. The main function gets input to populate the player list, then calls the Tournament methods to output selected players or their points.