def list_of_groups(init_list, childern_list_len):
'''
:param init_list:
:param childern_list_len:
:return:
'''
list_of_group = zip(*(iter(init_list),) *childern_list_len) # zip(childern_list_len ge list_iterator object)
end_list = [list(i) for i in list_of_group] # i is a tuple
count = len(init_list) % childern_list_len
end_list.append(init_list[-count:]) if count !=0 else end_list
return end_list