need help for calling function
<pre><code>List_of_subject = ['add user', 'modify user', delete user'] and so on
</code></pre>

<p>I have a variable called subject. so depending upon the subject other function are called.
like add_user, modify_user, delete_user and so on.</p>

<p>So when my subject is 'add_user'
I want to call add_user function. I can call it like a normal function call.
But my list_of_subject is keep growing.</p>

<p>Can I DO :</p>

<pre><code>List_of_subject.index(subject)
</code></pre>

<p>I get the index. So I want something like when index is 1 call add_user function.
Basically I want to link my function to list_of_subject list.
or it is ok to do this:`</p>

<pre><code>if subject in list_of_subject:
  if subject == 'add user' :
        user = add_user()
  else if subject == ' modify user' 
        user = modify_user()
</code></pre>

<p>thanks.</p>

<p>thanks.</p>
