title: Accessing specific value in a list of values
body: <p>I have a dictionary that looks like:</p>
  
  <pre><code>{'153':  |T-shirt| |200| |0| |0|, '764': |Jeans| |350| |0| |0|, '334': |Hatt| |59| |0|   |0|, '324': |Skor| |250| |0| |0|, '234': |Tröja| |300| |0| |0|, '543': |Jacka| |400| |0| |0|}
  </code></pre>
  
  <p>This means that I for example have a key that looks like 153, which access a value of:</p>
  
  <pre><code>|T-shirt| |200| |0| |0|
  </code></pre>
  
  <p>What if I would like to do is access 1 of the parts in my value. For exampel, if i type 153 and get|T-shirt| |200| |0| |0|, how then to access the part 200 in my value? If my dict value is: |T-shirt| |200| |0| |0|, i want only to get: 200, bot any of the other parts of the same value. All of my dict values are objects for the class wares, which means that each part that is enclosed by "||" is a attribute.</p>
  
  <p>for exampel:</p>
  
  <pre><code>|T-shirt| |200| |0| |0|. 
  </code></pre>
  
  <p>Were T-shirt is a self.name attribute, 200 is a self.price attribute, 0(1st one) is a self.quantity and 0(2nd one) is a self.bought attribute.</p>
  
  <p>I only want to access the self.price attribute, how do I do it? I tried indexing my object like:</p>
  
  <pre><code>x = wares[T-shirt, 200, 0, 0]
  b = x[1]
  print(b)
  </code></pre>
  
  <p>but python says that:</p>
  
  <pre><code>"object can not be indexed"
  </code></pre>
  
  <p>any one got a tip?</p>