Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. def homeDrawAwayOver() :
  2. i = 0
  3. while i < len(one) or i < len(two):
  4. if (one[i] > two[i] and one[i] + two[i] > 1.5):
  5. print("home won and over 1.5")
  6. elif(one[i] > two[i] and one[i] + two[i] > 2.5):
  7. print("home won and over 2.5")
  8. elif(one[i] == two[i] and one[i] + two[i] > 1.5):
  9. print("draw won and over 1.5")
  10. elif(one[i] == two[i] and one[i] + two[i] > 2.5):
  11. print("draw won and over 2.5")
  12. elif(two[i] > one[i] and one[i] + two[i] > 1.5):
  13. print("away won and over 1.5")
  14. elif(two[i] > one[i] and one[i] + two[i] > 2.5):
  15. print("away won and over 2.5")
  16. else:
  17. homeDrawAwayUnder()
  18. i += 1
  19. def homeDrawAwayUnder() :
  20. j = 0
  21. while j < len(one) or j < len(two):
  22. if (one[j] > two[j] and one[j] + two[j] < 2):
  23. print("home won and under 1.5")
  24. elif(one[j] > two[j] and one[j] + two[j] < 3):
  25. print("home won and under 2.5")
  26. elif(one[j] == two[j] and one[j] + two[j] < 2):
  27. print("draw won and under 1.5")
  28. elif(one[j] == two[j] and one[j] + two[j] < 3):
  29. print("draw won and under 2.5")
  30. elif(two[j] > one[j] and one[j] + two[j] < 2):
  31. print("away won and under 1.5")
  32. elif(two[j] > one[j] and one[j] + two[j] < 3):
  33. print("away won and under 2.5")
  34. else:
  35. print("on the over side")
  36. j += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement