title: How to append multiple items to a list with user input without overriding items already in list?
body: <p>When I want to append a value to a list, the previous value gets replaced with the new value. I don't want that. Here's my code:</p>
  
  <pre><code>a_list = []
  i = input("insert item: ")
  
  a_list.append(i)
  print(a_list)
  </code></pre>
  
  <p>When I run the code:</p>
  
  <pre><code>&gt;&gt;&gt; Insert item: "1"
  a_list = ['1']
  &gt;&gt;&gt; Insert item: "2"
  a_list = ['2']
  &gt;&gt;&gt; Insert item: "3"
  a_list = ['3']
  </code></pre>
  
  <p>But I want it to output:</p>
  
  <pre><code>&gt;&gt;&gt; Insert item: "1"
  a_list = ['1']
  &gt;&gt;&gt; Insert item: "2"
  a_list = ['1','2']
  &gt;&gt;&gt; Insert item: "3"
  a_list = ['1','2','3']
  </code></pre>