SHARE
TWEET

Untitled

a guest Dec 5th, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     def get_avg_years_played(self):
  2.         """ Returns the average years played """
  3.         all_players = self._player_manager.get_all()
  4.         for player in all_players:
  5.             number = player.get_player_year_drafted()
  6.             number2 = 2019 - number
  7.             number3 = 0
  8.             number3 = number3 + number2
  9.         avg_years_played = number3/len(all_players)
  10.         return avg_years_played
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top