title: check for repeated characters/letter in a string
body: <p>hi i want to check if a string from user input has two repeated characters/letters in a string next to eachother.. i have a simple code to check if the first letter and second letter in the string are the same.</p>
  
  <pre><code>def two_same():
      d = []
      while len(d) &lt;= 1:
          d = input("enter the same letter twice:")
      if d[0] == d[1]:
          return print(d[0])
  two_same()
  </code></pre>
  
  <p>but how would i check all the characters in the string and for a repeated letter from a user input.</p>