Question: This is a python 3 program class class Team An object of this class represents information about a team: namely, the team name, the conference
This is a python 3 program class

class Team An object of this class represents information about a team: namely, the team name, the conference it belongs to, and win-loss data. This class should implement the following methods: . init_(self, line) :line is a line read from the input file. Initializes the object with information extracted from 1ine. The information stored as attributes for each team should be sufficient to implement the other methods for the team specified below. name (self): returns the name of the team. conf (self): returns the conference the team belongs to. win_ratio(self): returns the win ratio for the team str (self) returms a string with information about the team, in the following format: ".format (name, win_ratio_str) where name is the name of the team and win ratio str is its win ratio (as a string)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
