How to call a function of a class from a for loop in python : I have a list which contains functions of a class, i want to iterate through that list and call the function.
i have created an object for the class
a=class1()
list_functions=['add("pavan",9)', 'add("pavan2",9:10)', 'add("pavan3",9:30)', 'add("pavan4",9:40)', '']
my for loop will be
for i in  range(len(list_functions)):
    a.[list_functions[i]]

But this gives me an error.

