handling python string or list dynamically
<p>numberofrow, 
its value is dynamically set in form field. </p>

<p>now since numberofrow is in multiple tables, 
when i receive that variable from form,</p>

<p>if only one numerofrow, its a String, for ex. numberofrow = 01</p>

<p>if more than one numberofrow, its a list, for ex. numberofrow = [01, 02, 04]</p>

<p>Now how do i differentiate if its a list or string in my python code?</p>

<p>am thinking of using, </p>

<pre><code>if type(numberofrow).__name__=='list':
    #do this
else:
    #do this
</code></pre>

<p>Thanks,
Sunny.</p>
