title: Convert value of dictionary as a list?
body: <p>Let's say I was given with this text <code>age_gender.txt</code></p>
  
  <pre><code>Female:18,36,35,49,19
  Male:23,22,26,26,26
  </code></pre>
  
  <p>Here's the code I have so far</p>
  
  <pre><code>file = open("age_gender.txt")
     contents = file.read().splitlines()
     new_dictionary = dict(item.split(":") for item in contents)
  
  return new_dictionary
  </code></pre>
  
  <p>When I call the function <code>readfile()</code> this is the output I get, however the list of value is still in quotation marks. How do you convert that each value into a list? </p>
  
  <pre><code>{'Female': '18,36,35,49,19', 'Male': '23,22,26,26,26'}
  </code></pre>
  
  <p>The output I want to achieve is something like this</p>
  
  <pre><code>{'Female': [18,36,35,49,19], 'Male': [23,22,26,26,26]}
  </code></pre>