title: How to break a dictionary into a list of dictionaries in python?
body: <p>I'm trying to convert a dictionary into a list, which contains many dictionaries. for example:</p>
  
  <p>input:</p>
  
  <pre class="lang-py prettyprint-override"><code>{
      'first-name':'foo',
      'last-name':'bar',
      'gender':'unknown',
      'age':99
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre class="lang-py prettyprint-override"><code>[{'first-name': 'foo'}, {'last-name': 'bar'}, {'gender': 'unknown'}, {'age':99}]
  </code></pre>
  
  <p>I am already using this code to do such:</p>
  
  <pre class="lang-py prettyprint-override"><code>
  
  def convert(info: dict):
      new_list = list
  
      for item in info:
          new_parameter = {item:info[item]}
          new_list.append(new_parameter)
  
      return new_list
  
  </code></pre>
  
  <p>but I was wondering if there is a built-in function to do this? or a more readable piece of code? it's almost 10 lines! and kind of confusing to understand!</p>