Complete the Team class implementation. For the instance method
get_win_percentage(), the formula is:
wins / (wins + losses). Note: Use floating-point
division.
For instance method print_standing(), output the win percentage
of the team with two digits after the decimal point and whether the
team has a winning or losing average. A team has a winning average
if the win percentage is 0.5 or greater.
Ex: If the input is:
where Ravens is the team's name, 13 is the number of team wins,
and 3 is the number of team losses, the output is:
Ex: If the input is:
the output is:
PYTHON LANGUAGE
Complete the Team class implementation. For the instance method get_win_percentage(), the formula is: wins / (wins + los
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am