title: Returning a list of dictionaries by iterating over given data
body: <p>So let's say I've a list of students and there is a dictionary containing some data for each student as given below :</p>
  
  <pre><code>students= [{'student_name': 'name1', 
            'regNO': '12',
            },{'student_name': 'name2', 
            'regNO': '13',
            },{'student_name': 'name3', 
            'regNO': '14',
            }
           ]
  </code></pre>
  
  <p>So based on the above data I want to return another list of dictionaries containing data for each student,</p>
  
  <p>I wrote the following code : </p>
  
  <pre><code>res_dict = {}
  res_list = []
  
      for student in students:
          res_dict['name']=student['student_name']
          res_list.append(res_dict)
  
  print(res_list)
  </code></pre>
  
  <p>I was hoping that in the output, for each student , there would be a dictionary with key being 'name' and value being the student name taken from 'students' list. I expected it to be as follows :</p>
  
  <pre><code>[{'name': 'name1'}, {'name': 'name2'}, {'name': 'name3'}]
  </code></pre>
  
  <p>But the output turned out to be this : </p>
  
  <pre><code>[{'name': 'name3'}, {'name': 'name3'}, {'name': 'name3'}]
  </code></pre>
  
  <p>Can anyone help me identify the issue in my code ?</p>