title: Excluding a digit in a for loop
body: <p>Hi I would like to exclude any number that contains a 7 from the range of 1-1000 in my for loop.</p>
  <p>This is the code I have so far</p>
  <pre><code>sum = 0 
  for i in range(1,1001): 
      if #digit contains a 7: 
          continue
      sum = sum + 1/i
      return sum 
  </code></pre>