title: Calling functions of a class from a list of functions
body: <p>Let <em>example</em> be a class of five functions including the constructor:</p>
  <pre><code>class example():
      def __init__(self):
           self.best_A=None
           self.best_B=None
           self.best_C=None
  
      def run_A(self):
          #code here
          self.best_A= ..
          pass
  
      def run_B(self):
          #code here
          self.best_B= ..
          pass
      
      def run_B(self):
          #code here
          self.best_C= ..
          pass
  
      def run(self):
         self.run_A()
         self.run_B()
         self.run_C()
  
  </code></pre>
  <p>Rather than typing all the functions in the function <strong>run()</strong>, how to create a list of function names and call them by iterating through the list ?</p>