title: How to check for duplicate letter in a array of strings. python
body: <p>So if I have a list </p>
  
  <pre><code>word = ['cat','laap','cabb']
  </code></pre>
  
  <p>How can I check if the adjacent letter is a duplicate? I was thinking that with i position I can go to the first index of the array and with j to check every individual letter? Is this the right approach?</p>
  
  <p>Note: that my tabs might be wrong in my code I find stack over tag code to be a little weird.</p>
  
  <pre><code>words = ['cat','laap','cabb']
  for i in range(len(words)): 
      for j in range(len(words)):
          if(words[i][j]==word[i][j+1]):
              print('dup')
  </code></pre>