Advertisement
Alinchik

Untitled

Jul 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. a = [5, 4, 2, 3, 2, 5, 6, 2, 6, 3, 1, 4, 2, 2, 6, 5, 6, 4]
  2. ob = a[:6]
  3. sh = a[6:12]
  4. pr = a[12:18]
  5. if sum(ob)>sum(sh) and sum(ob)>sum(pr):
  6.     print (sum(ob))
  7. elif sum(sh)>sum(ob) and sum(sh)>sum(pr):
  8.     print (sum(sh))
  9. elif sum(pr)>sum(ob) and sum(pr)>sum(sh):
  10.     print (sum(pr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement