1.

How Do I Apply A Method To A Sequence Of Objects?

Answer»

USE a LIST COMPREHENSION:
RESULT = [OBJ.method() for obj in List]

Use a list comprehension:
result = [obj.method() for obj in List]



Discussion

No Comment Found