this is a quick one. Suppose I got a multidimensional list of class objects, named table, and I need to access the class attribute .name.
I don't want to use nested loops, and of course to print this, I need to use format().
for i in range(3):
print '{0} - {1} - {2}'.format(*table[i].name)
Obviously that didn't work. As well as (*table[i]).name. I need to be able to access .name for each class object in the table[i] list. Mind if you put me to the right direction? Thanks in advance.