title: How to save output of for loop to list in python?
body: <pre><code>allpkts = []
  for i in range(10):
          s[IP].len = i
          del s[IP].chksum
          del s[UDP].chksum
          allpkts.append(s)
  print allpkts
  </code></pre>
  
  <p>Here in my <code>allpkts</code> list I am seeing only last number output.
  i want all the packets 0 to 9 in allpkts.</p>