title: dictionary only displaying last printed value (loop problems)
body: <p>Hey guys so i'm a few months into python and i'm trying a function that stores the input into a dictionary and print it out.  MY problem is I can only get the function to print out the last result. Please help if you can. </p>
  
  <p>I can only get it to break so far but not print out my input.</p>
  
  <pre><code>def results():
    name = 0
    score = 0
    grades = {}
  
    while score != 'q':
  
  name = input('Enter the name of the student:')
  
      score = input('Enter the score of the student:')
  
      grades[name] = score
      if name == 'q':
        continue
      if score == 'q':
        break
  
    return grades
    print('Okay, printing results now!')
    print(grades.items())
  
  results()
  </code></pre>
  
  <p>expect to see the results of the dictionary printed out. </p>
  
  <p>(Full disclosure i'm a little embarrassed asking pros like you guys for help on my dumb little problem lol so please be gentle and if you have any tips on learning better etc i'll gladly take them.)</p>