Possible Duplicate: How can I turn a list into an array in python?
How can I turn a list such as:
<
This groups each 3 elements in the order they appear:
new_list = [data_list[i:i+3] for i in range(0, len(data_list), 3)]
Give us a better example if it is not what you want.