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

This is a python 3 program class class Team An object of

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!