KreativeMente

Untitled

Jun 24th, 2021
820
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def batches(array, amount):
  2.     amount = max(1, amount)
  3.     return (l[i:i+amount] for i in range(0, len(array), amount))
RAW Paste Data