title: How to find all numbers containing a specific digit in a range of numbers from 1 to 100?
body: <p>I have a list of items from 1 to 100 inside 1 list.</p>
  
  <p>Query 1:</p>
  
  <p>Suppose if I want to find 6 from 1 to 100, the new list 
  should have - <code>6,16,26,36,46,56,60,61,62,63,64,65,66,67,68,69,76,86,96</code>.<br>
  How do we achieve this?</p>
  
  <p>Query 2:</p>
  
  <p>The specific number can be anything of our choice like if I have 4
  then the new list should be - <code>4,14,24,34,40,41,42,43,44,45,46,47,48,49,54,64,74,84,94</code>. </p>
  
  <p>So can we have a generic logic for both or we need to have different logic for any specific numbers?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is what I have tried so far,</p>
  
  <pre><code>z = [1,2,3,4,5,6,7,8,9,10] 
  for i in z: 
      if i == 6: 
          print(i)
  </code></pre>
  
  <p>I was only able to get it from for 1 to 10 but could not get it for 1 to 100.</p>