Guest User

Untitled

a guest
Jul 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def med_of_meds(list):
  2.  
  3. sublists = [list[i : i + 5] for i in range(0, len(list), 5)]
  4. print(sublists)
  5. ...
  6.  
  7. [[10, 9, 8, 7, 6], [5, 4, 3, 2, 1]]
  8. [(7, [1, 7, 6, 5, 4, 3, 2, 8, 10, 9])] #Culprit
Add Comment
Please, Sign In to add comment