title: How to use dictionaries in Python to link students to grades
body: <p>I'm a complete beginner trying to teach myself Python. Currently working through a book and have just finished the chapter on using dictionaries.  Trying the exercises and have gotten stuck. I was hoping someone could give me some advice on how to solve a particular problem.  I've been tasked with the following exercise:</p>
  
  <p><b><i>Create a program that pairs a student's name to his class grade.  The user should be able to enter as many students as needed and then get a printout of all the students' names and grades.  The output should look like this:</p>
  
  <p><p>Please give me the name of the student (q to quit): [INPUT]<br/>
  Please give me their grade: [INPUT]<br/>
  [And so on...]<br/>
  Please give me the name of the student (q to quit): q<br/>
  Okay, printing grades!<br/>
  Student    Grade<br/>
  Student1   A<br/>
  Student2   D<br/>
  Student3   B<br/>
  Student4   A<br/>
  [And so on...]</p>
  
  <p>Carefully consider what should be unique (and therefore used as a key) and what would probably not be unique (and therefore should be stored as a value)</b></i></p>
  
  <p>I'm completely stuck about how to accomplish this. What's confusing me is what to use as the dictionary key(s) because they need to be unique. The student names can't be keys because you can have people with the same name.  And I don't think grades are unique either.</p>
  
  <p>Can anyone help me out? Maybe show me some example code on how to accomplish this? Apologies if this seems like a stupid question and is totally obvious to all Python developers. I am a beginner as I said.</p>