Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (joachim):

How do I create a 2d array from a 1d array in python 3?

OpenStudy (anonymous):

I don't know how it is done in python 3 syntax, but in python 2 you may use a list comprehension to create a list of lists from a flat 1d list. http://ideone.com/oDf74 I think there's an even better way to do this in Python using something like zip, or something from functools, so google on! :-D

OpenStudy (joachim):

thanks :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!