multiple inputs in python
<p>I am trying to input multiple entries but when I run these statements, it does not as expected. Suppose I want to read name and age of person.</p>

<pre><code>num1=raw_input("ENter a number :");
nam1=raw_input("What is your name:");
print num1;
ENter a number :nam1=raw_input("What is your name:")
print nam1;

Traceback (most recent call last):
File "input", line 1, in module

NameError: name 'nam1' is not defined
</code></pre>

<p>So, If I execute these two statements in console, it reads the second statement as the input to first queries, i.e. takes nam=raw_input("Whats your name:") as the nam1.</p>

<p>Is there way to enter one input at a time while executing multiple statements simultaneously?</p>

<p>Thanks !</p>