title: Python, list with regular gaps
body: <p>I want to create a python list with regular gaps. I have a general idea of how I can do it, but is there a short way to do it or an inbuilt function to do this.</p>
  
  <p>Suppose I want to create a list from 1 to 200, with gaps of 50. The list would be [1,..,50,101,..,150], i.e the sequence from 51 to 100 and 151 to 200 is not in the list.</p>
  
  <pre><code>def create_list_step(start,end,step):
       result = []
       current = start
       while current &lt; end:
            smallinterval = current + step
            result = result + list(range(current, smallinterval))
            current = smallinterval + step
      return result
  </code></pre>