title: import a list into a dictionary value Python
body: <p>I am trying to import this list item from the main function:</p>
  <pre><code>character1 = Character(&quot;Conan the Barbarian&quot;)
  
  
  for test_item in [&quot;sword&quot;, &quot;sausage&quot;, &quot;plate armor&quot;, &quot;sausage&quot;, &quot;sausage&quot;]:
      character1.give_item(test_item)
  </code></pre>
  <p>I am using class and in the class there is those methods to save the list to the character</p>
  <pre><code>class Character:
  
      def __init__(self, character):
  
          self.__character = character
          self.__dct = {}
  
      def give_item(self, items):
  
          self.__dct[self.__character] = items
  
  
      def printout(self):
  
          for characters in self.__dct:
              print(f'Name:', characters)
              for items in self.__dct.keys():
                  print(self.__dct[self.__character])
  </code></pre>
  <p>my output is printing only the last entry from the list, seems like the entries being overwritten. But I can't really figure why.</p>
  <p>my output</p>
  <pre><code>Name: Conan the Barbarian
  sausage
  </code></pre>
  <p>I want my output to be:</p>
  <pre><code>
  Name: Conan the Barbarian
     plate armor
     sausage
     sword
  </code></pre>