title: How do I make a list that shows what keys I took from a dictionary
body: <pre><code>    Books = {&quot;1&quot;:&quot;Percy Jackson&quot;, &quot;2&quot;:&quot;Harry Potter&quot;,&quot;3&quot;:&quot;Eragon&quot;,&quot;4&quot;:&quot;Science for Dummies&quot;, &quot;5&quot;: 
      &quot;Encyclopedia of Knowledge&quot;}
      for choice in Books:
          choices = []
          choices2 = []
          picking = input(&quot;Please take a book.Please pick the book number: &quot;)
          picking = int(picking)
          question = input(&quot;Do you want to continue: &quot;)
          if 6 &gt; picking:
              picking = str(picking)
              print(Books[picking])
              choices.append(Books[picking])
              choices2.append(choices[:])
          else:
              print(&quot;Error&quot;)
          if question == &quot;yes&quot;:
              continue
          else:
              print(&quot;Checkout&quot;)
              print(choices)
              print(choices2)
              break
  </code></pre>
  <p>I am new so the formatting might be off. The whole point of this was to make a &quot;Library&quot; and have 5 types of books. I then have to make the code add a thing at the bottom that says, what books the person got. The problem is that the .append keeps destroying the one before it in the for loop. Can anybody help me fix this?</p>