Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. score = int(input("what is your judges score for person1"))
  2.  
  3. while score < 0 and score > 10:
  4. print("error score needs to be below 10 and above 0")
  5. score = int(input("what is your judges score for person1"))
  6. ScoreArray.append(score)
  7. print (ScoreArray)
  8.  
  9. max1 = 0
  10. for item in ScoreArray:
  11. if item > max1:
  12. max1 = item
  13. ScoreArray.remove(max1)
  14. print (max1)
  15.  
  16.  
  17. min1 = 0
  18. for item2 in ScoreArray:
  19. if item2 < min1:
  20. min1 = item2
  21. ScoreArray.remove(min1)
  22. print (min1)
  23. print (ScoreArray)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement