[Tutor] How to create array of variants?

Kelie kf9150 at gmail.com
Wed Jul 9 18:25:31 CEST 2008


Monika Jisswel <monjissvel <at> googlemail.com> writes:

> 
> 
> 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.
> 
> 

Monika, Thanks for your reply. I've tried using the list data type, but it does
not work in this case.





More information about the Tutor mailing list