[Tutor] class attributes

Eric Walker ewalker at micron.com
Wed Nov 16 20:06:38 CET 2005

If I have some like the following:

markersExp = ['big','boss','two','three']
for mark in markersExp:
     print y.mark

Now I have an list of class objects that are in an outerloop. y is how I 
access it. The attributes names of the class objects match whats in 
markersExp. Can I do that print statement in a way to allow me to print the 
value of the class attribute?

More information about the Tutor mailing list