title: Adding entered items separated by spaces into a dictionary. Python
body: <p>I need to make a program which asks the user to enter the city followed by the temperature there. The city and temperature are separated by a space. The program stops asking for input and reports the coldest city, when the user enters 'stop'. You can always assume that the user enters a city followed by a single space and then the temperature.</p>
  
  <pre><code>Sample Output:
  
  Enter city followed by temperature &gt; Edmonton -2
  Enter city followed by temperature &gt; Toronto 3
  Enter city followed by temperature &gt; Vancouver -1
  Enter city followed by temperature &gt; Ottawa -3
  Enter city followed by temperature &gt; stop
  {'Toronto': 3, 'Edmonton': -2, 'Vancouver': -1, 'Ottawa': -3}
  The coldest city is Ottawa -3
  </code></pre>
  
  <p>The problem I am having is how to get the entered item into the dictionary form. I don't understand how it would work with the space being there in the entered item. I have three other programs that follow this format with the input including spaces and I really cant figure out/find how to work it out. Any help would be appreciated.</p>
  
  <p>PS: I am in a beginner's computing science course.. yeahh..</p>