title: Alternating letter in python
body: <pre><code>def myfunc(word):
      result = ""
      index = 0
      for letter in word:
          if index % 2 == 0:
              result += letter.lower()
          else:
              result += letter.upper()
      return result
      index +=1
  </code></pre>
  
  <p>I am trying to return a matching string where every even letter is uppercase and every odd letter is lowercase. But the code doesn't show this exact result, any solution?</p>