title: How do you return key-value pairs from a function where the key is the input and the value is the output?
body: <p>I am looping a function over a list of values <code>inputs</code> that returns a list of values <code>outputs</code> like this:</p>
  
  <pre><code>outputs = []
  for i in inputs[:]:
       outputs.append(str(function(i)))
  </code></pre>
  
  <p>How do I set up a dictionary that populates key value pairs of inputs and outputs like below?</p>
  
  <pre><code>input1, output1
  input2, output2
  </code></pre>