Question: In Python, Write a class named Player that has first name, last name, jersey number and total points scored as attributes. Add the functions below.

  1. In Python, Write a class named Player that has first name, last name, jersey number and total points scored as attributes. Add the functions below. Write the code to demonstrate each function.

  • A function that adds points to a players total

  • A function that calculates and outputs the average points for a player when given the number of games played

  • A function that prints the player information. For example:

Player: Tanner Omlid

Jersey Number: 11

Total Points: 475

Average Points per Game: 18.5

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!