KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicate: How can I turn a list into an array in python? How can I turn a list such as: data_list = [0,1,2,3,4,5,6,7,8] into a list of lists such as: new_list = [ [0,1,2] , [3,4,5] , [6,7,8] ] ie I want to group ordered elements in a list and keep them in an ordered list. How can I do this?
Tags (comma-separated)
Save Edits
Cancel