title: How to store multiple entries for each student using dictionaries
body: <p>Here is the problem statement:</p>
  
  <p>There is a record of 'n' students, each record having name of student, percent marks obtained in Maths, Physics and Chemistry. The user enters an integer 'n' followed by names and marks for the 'n' students. I am required to save the record in a dictionary data type. The user then enters name of a student and you are required to print the average percentage marks obtained by that student, correct to two decimal places.
  what I have tried so far:</p>
  
  <pre><code>num_students = int(raw_input("Please enter number of students:"))
  print "you entered %s students" %num_students
  student_info = {}
  student_data = ['studentname', 'mathmarks', 'physicsmarks', 'chemistrymarks']
  for i in range(0,num_students):
      for entry in student_data:
          student_info[entry] = raw_input(entry )
  print student_info
  print"please enter student name"
  name = raw_input("student name")
  if student_info['studentname'] == name:
      print "Average student marks:", (int(student_info['mathmarks']) + int(student_info['physicsmarks']) + int(student_info['chemistrymarks']))/3
  else:
      print"please enter valid name"
  </code></pre>
  
  <p>This code is working is num_students = 1, However if num_students >1 the code fails.</p>
  
  <p>I am unable to save the entry of each student in dictionary.</p>
  
  <p>I am pretty new to python, would be glad if any one can help me with this.</p>