Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #The next section of code is for the yearly total. This code will predict the yearly total for an individual stat for a certain team based on the users' input.
  2. team = raw_input('What team do you want to compute the yearly averages for? 1 for Hornets, 2 for Bucks, 3 for Pistons, 4 for Raptors')
  3.  
  4. if team == str(1):
  5. h_tpts = (h_pts) * 82
  6. print h_tpts
  7.  
  8. print("The Hornets score " + str(h_pts) " per game. This current pace would have them scoring " + str(h_tpts) " for the whole entire year")
  9.  
  10. if team == str(2):
  11. b_tnet = (b_net) * 82
  12. print("The Bucks outscore their opponents by an average of " + str(b_net) " per game. With this current average, the Bucks will outscore all of their opponents this season by a total of " + str(b_tnet))
  13.  
  14. if team == str(3):
  15. p_ttrb = (p_trb)*82
  16. print("The Pistons have the best rebounding center in the league with Andre Drummond, so they average " +str(p_trb) " per game. This average would put them on pace for " +str(p_ttrb) " rebounds for the season as a team")
  17.  
  18. if team == str(4):
  19. r_ttov = r_tov * 82
  20. print("The Raptors average " +str(r_tov) " turnovers per game. This would put them at a season total of " +str(r_ttov) " turnovers with this current average.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement