title: Why does it recognize the second capital T as 0?
body: <p>I'm trying to make a short program that will find all the capital letters in a single string. I got it to work for the first two capital letters but it won't return the correct position of the last capital letter. What did I do wrong?</p>
  <pre><code>def capital_indexes(n):
      listOfUpperPlaces = []
      for x in n:
          print(x)
          if x.isupper():
              characterPlace = n.index(x)
              print(characterPlace)
              listOfUpperPlaces.append(characterPlace)
  
      return listOfUpperPlaces
  
  print(capital_indexes(&quot;TEsTo&quot;))
  </code></pre>