[Tutor] How to create array of variants?
Monika Jisswel
monjissvel at googlemail.com
Tue Jul 8 13:04:04 CEST 2008
Comment : I never did any VB so I am not sure if I understand you.
supposing your data comes like this :
python code :
Data = ( ('A', 1), ('B', 2), ('C', 3), ('D', 4) )
> #you can create a list of the items like this :
>
> List_Letters = [ x[0] for x in Data]
> List_Numbers = [ x[1] for x in Data]
>
hope this helps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080708/9f54bb19/attachment.htm>
More information about the Tutor
mailing list