[Tutor] how to convert array into tuple

Fangwen Lu lufangwen at gmail.com
Wed Sep 26 19:11:56 CEST 2007


Dear all-

If I have an array array([1, 2, 3, 4, 5, 6]), and I want to get
((1,2),(3,4),(5,6)). What should I do?

Thank you!

Fangwen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070926/b8b22f29/attachment.htm 


More information about the Tutor mailing list