title: ValueError: item is not in list
body: <p>I am making this simple code:</p>
  
  <pre><code>MyList=[]
  valueA=1
  valueB=2
  valueC=3
  MyList.append (valueA)
  MyList.append (valueB)
  MyList.append (valueC)
  print (MyList)
  print ([MyList].index(valueB))
  </code></pre>
  
  <p>I created it to try the [a].index(b) statement. As far as I know, and as far as I could find on the internet, this code should be fine. </p>
  
  <p>I thought it would give the output: 0, because the index from valueB should be 0 (correct me if I'm wrong). Instead it gave the output:</p>
  
  <pre><code>    print ([MyList].index(valueB))
  ValueError: 2 is not in list
  </code></pre>
  
  <p>I dont think there are any problems with the difference between integer, string and float.</p>
  
  <p>Can anybody tell me what I am doing wrong?</p>