title: Program unexpected execution
body: <p>I am trying to run below <strong>python code</strong>  </p>
  
  <pre><code>list_name = []
  dictionary = {'fname' : '' , 'lname' :''}
  for i in range(0,2):
      dictionary['fname'] = i
      dictionary['lname'] = i
      print dictionary
      list_name.append(dictionary)
      #dictionary = {'fname' : '' , 'lname' :''}
  print "List : ", list_name
  </code></pre>
  
  <p><strong>Output</strong>  </p>
  
  <pre><code>{'lname': 0, 'fname': 0}
  {'lname': 1, 'fname': 1}
  Array :  [{'lname': 2, 'fname': 2}, {'lname': 2, 'fname': 2}]
  </code></pre>
  
  <p>When I uncomment this line <code>dictionary = {'fname' : '' , 'lname' :''}</code> in above code<br>
  I get this  </p>
  
  <p><strong>Output</strong></p>
  
  <pre><code>{'lname': 0, 'fname': 0}
  {'lname': 1, 'fname': 1}
  Array :  [{'lname': 0, 'fname': 0}, {'lname': 1, 'fname': 1}]
  </code></pre>
  
  <p>I am not getting the default behavior of python...Please explain</p>