title: map() function getting input
body: <p>I'be trying to get an special input from the user and then save it in something like a dictionary. The input I have in mind is something like:</p>
  
  <pre><code>&gt;&gt;&gt; id 1230
  </code></pre>
  
  <p>and I want it to be save in the form of:</p>
  
  <pre><code>{"id":1230}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[(id,1230)]
  </code></pre>
  
  <p>my problem is that there are actually two variables,one is a string and another is an integer,so somehow I have the get a line from the user,then the first and second parts should be separated and saved in one of the forms I mentioned. I know it has to do with the map() function and maybe a lambda expression is also used.once I used such a code to get two integers:</p>
  
  <pre><code>x,y = map(int,input().split())
  </code></pre>
  
  <p>but I really don't know how to do it with a string and integer.
  Thank you very much</p>