Say I have a bunch of instances of a class and one of the attributes below is the salary for every player. How would I calculate the sum of the salary for all players every time an instance is created?
Player1 = Player('John Smith','RB',749912,23) Player2 = Player('Ron Ward', 'TE', 7000000, 26) Player3 = Player('Matt Abrams','QB', 27525000, 30) Player4 = Player('Anthony Atlee', 'LT', 11050000, 30)