Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ACTmath = []
  2. for line in ACTlist:
  3. ACTmath.append(int(line[2]))
  4. max_math = max(ACTmath)
  5. print(max_math)
  6.  
  7. state, verbal_score, math_score = ACTlist[0]
  8. states = []
  9. for (state, verbal_score, math_score) in ACTlist:
  10. states.append(state)
  11. max_state = states[ACTmath.index(max_math)]
  12. print(max_state)
  13.  
  14. print('The state with the highest math score was', max_state, 'with a score of', max_math)
  15.  
  16. for x in ACTmath:
  17. if x > 450:
  18. print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement