title: TypeError: 'builtin_function_or_method' object does not support item assignment
body: <p>I have this error when i try to run my script:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#6&gt;", line 1, in &lt;module&gt;
      converter()
    File "C:\Users\Joan\Documents\School\Computing\Coursework\A453 - Python\Currency Converter.py", line 19, in converter
      exchange(currencyList)
    File "C:\Users\Joan\Documents\School\Computing\Coursework\A453 - Python\Currency Converter.py", line 33, in exchange
      crntItem = currencyList.index[crntCurrency] =+ 1
  TypeError: 'builtin_function_or_method' object does not support item assignment
  </code></pre>
  
  <p>Here is my code, an unfinished currency converter:</p>
  
  <pre><code># Global ist
  currencyList = ["Pound Sterling", 1, "Euro", 1.22, "US Dollar", 1.67, "Japanese Yen", 169.9480]
  
  
  
  #################################
  # A program to convert currency #
  # Main function                 #
  #################################
  def converter():
      currencyList = ["Pound Sterling", 1, "Euro", 1.22, "US Dollar", 1.67, "Japanese Yen", 169.9480]
      print("1) Enter an amount to be exchanged.")
      print("2) Change exchange rates.")
      choice=0
      while choice==0:
          selected=int(input("Please select an option: "))
          if selected == 1:
              choice = 1
              exchange(currencyList)
  
  
  
  
  #################################
  # Giving exchanged rate         #
  #################################
  
  def exchange(currencyList):
      crntAmnt = int(input("Please enter the amount of money to convert: "))
      crntCurrency = ("Please enter the current currency: ")
      newCurrency = ("Please enter the currency you would like to convert to: ")
      listLength = len(currencyList)
      crntItem = currencyList.index[crntCurrency] =+ 1
      print(crntItem)
      newItem = currencyList.index[newCurrency] =+ 1
      print(newItem)
  </code></pre>
  
  <p>I have tried to set up a main function as a menu then call other sub - function to compltete the relevant choice. I would like some advice on whether this is a good and way to code this as I saw my teacher do something similar, of wether i should just put it into 'if' statements etc.</p>
  
  <p>Is this a good, correct way to code?</p>