title: Check if a number has same digit in Python
body: <p>How to check if a number has same digit in Python</p>
  
  <p><strong>For example:</strong></p>
  
  <p><code>check(111) --&gt; True</code></p>
  
  <p><code>check(22) --&gt; True</code></p>
  
  <p><code>check(111) --&gt; True</code></p>
  
  <p><code>check(45) --&gt; False</code></p>