title: Getting every nth character in the string in Python
body: <p>I have the following function but it doesn't give me the intended result:</p>
  
  <pre><code>def GetNthLetters(text,n):
      builtstring=""
      for letter in text:
          if text.index(letter)%n==0:
              builtstring=builtstring+letter
              print letter 
      return builtstring   
  </code></pre>