Advertisement
S0lo

Untitled

Jul 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #move on to the second input is the largest and the first input is the smallest
  2. if listend2 > listend3 and listend2 > listend4 and listend2 > listend5 and listend2 > listend1:
  3. largest = listend2
  4. if listend3 > listend4 and listend3 > listend5 and listend3 > listend1 and listend3 < listend2:
  5. large = listend3
  6. if listend4 > listend5 and listend4 > listend1 and listend4 < listend2 and listend4 < listend3:
  7. medium = listend4
  8. if listend5 > listend1 and listend5 < listend4 and listend5 < listend3 and listend5 < listend2:
  9. small = listend5
  10. if listend1 < listend5 and listend1 < listend4 and listend1 < listend3 and listend1 < listend2:
  11. smallest = listend1
  12. #move on to the third input is the largest and the first input is the smallest with the second input being second smallest
  13. if listend3 > listend4 and listend3 > listend5 and listend3 > listend1 and listend3 > listend2:
  14. largest = listend3
  15. if listend4 > listend5 and listend4 > listend1 and listend4 > listend2 and listend4 < listend3:
  16. large = listend4
  17. if listend5 > listend1 and listend5 > listend2 and listend5 < listend3 and listend5 < listend4:
  18. listend5 = medium
  19. if listend2 > listend1 and listend2 < listend5 and listend2 < listend4 and listend2 < listend3:
  20. listend2 = small
  21. if listend1 < listend2 and listend1 < listend3 and listend1 < listend4 and listend1 < listend5:
  22. listend1 = smallest
  23. #move on to the fourth input is the largest and the first input is the smallest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement