title: How to repeat some operation without knowing how many times it has to be repeated?
body: <p>For example:</p>
  
  <p>I want to know if some input number has only repeated digits or not. So, if the input number was "222", the program would return something like "Repeated digits", if input number was "2224", the program would return "Not fully repeated digits..."</p>
  
  <p>The ideal code would be something like this:</p>
  
  <pre><code>number=int(input("Insert the number: "))
  
  if (str(number)[0]==str(number)[1]==...str(number)[len(str(number))-1]):
      print("Repeated digits")
  else:
      print("Not fully repeated digits")
  </code></pre>
  
  <p>But I don't know how many characters the input number would have, so the program should len that and put that amount of times in the if function.</p>