SHARE
TWEET

Untitled

a guest Jun 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
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