title: How to call Python functions dynamically
body: <p>I have this code:</p>
  
  <pre><code>fields = ['name','email']
  
  def clean_name():
      pass
  
  def clean_email():
      pass
  </code></pre>
  
  <p>How can I call <code>clean_name()</code> and <code>clean_email()</code> dynamically?</p>
  
  <p>For example:</p>
  
  <pre><code>for field in fields:
      clean_{field}()
  </code></pre>
  
  <p>I used the curly brackets because it's how I used to do it in PHP but obviously doesn't work.</p>
  
  <p>How to do this with Python?</p>