title: How to pass multiple values into a dictionary
body: <p>so i have the following code:</p>
  <pre><code>    {'stu_name': 'Abel', 'sex': 'male', 'score': 90, 'cls_id': 1},
      {'stu_name': 'Carl', 'sex': 'male', 'score': 80, 'cls_id': 2},
      {'stu_name': 'Cecil', 'sex': 'female', 'score': 60, 'cls_id': 1},
      {'stu_name': 'Elijah', 'sex': 'female', 'score': 70, 'cls_id': 2},
      {'stu_name': 'Dick', 'sex': 'male', 'score': 90, 'cls_id': 3},
      {'stu_name': 'Donald', 'sex': 'male', 'score': 80, 'cls_id': 3},
      {'stu_name': 'Jack', 'sex': 'male', 'score': 80, 'cls_id': 2},
      {'stu_name': 'Laurent', 'sex': 'female', 'score': 90, 'cls_id': 1},
      {'stu_name': 'Rex', 'sex': 'female', 'score': 90, 'cls_id': 1},
      {'stu_name': 'Tom', 'sex': 'male', 'score': 70, 'cls_id': 2},
      {'stu_name': 'Roy', 'sex': 'female', 'score': 90, 'cls_id': 3},
      {'stu_name': 'Steve', 'sex': 'male', 'score': 70, 'cls_id': 1}
  ]
  cls_list = [
      {'id': 1, 'cls_name': 'Class One'},
      {'id': 2, 'cls_name': 'Class Two'},
      {'id': 3, 'cls_name': 'Class Three'},
      {'id': 4, 'cls_name': 'Class Four'}
  ]
  </code></pre>
  <p>What i want, is to make the program output the class name, followed by the number of people in it, followed by the number of males in it and finally followed by the number of females. What I have so far is this:</p>
  <pre><code>lst_empty = {}
  for cls in cls_list:
      lst_empty.setdefault(cls['cls_name'], 0)
      for stu in stu_list:
        if stu['cls_id'] == cls['id']:
            lst_empty[cls['cls_name']] +=1
        if stu['sex'] == 'male':
  </code></pre>
  <p>since setdefault can only get me 2 items, I'm kind of stuck on what to do with the if sex = male bit.
  I guess my main question is how do I pass in the number of males into the empty dictionary.
  I don't want to drastically change my code, I just want to know what I can do with the code I have right now.
  Thanks!</p>