title: Python error TypeError: string indices must be integers
body: <p>I'm kind of new to Python so if this is a silly mistake, please forgive me! </p>
  
  <p>I have been working on a Password Generator to present at tech club. How it works is that it asks for you to type in a word. The word you enter is turned into a list. Then it changes each letter in the list to something else to make a unique password (it's flawed, I know). When I run the code, it says <code>TypeError: string indices must be integers</code>. What is wrong with my code?</p>
  
  <pre><code>print ("Leo's Password Generator")
  print ('Please enter a word')
  word = input()
  
  
  print ('Enter another word:')
  word2 = input()
  word = word2 + word
  word.split()
  
  def print_list(toon):
      for i in toon:
          if toon[i] == 'e':
              toon[i] = '0'
  
  
  print_list(word)
  print (word)
  </code></pre>