Python mendapatkan alamat memori
>>> a, b = (1,2), (1,2)
>>> id(a)
4337896128
>>> id(b)
14629469952
just-saved-you-a-stackoverflow-visit
>>> a, b = (1,2), (1,2)
>>> id(a)
4337896128
>>> id(b)
14629469952
def chunks(lst, n):
"""Yield successive n-sized chunks from lst."""
for i in range(0, len(lst), n):
yield lst[i:i + n]