title: How can I make a list of n + 1 values with constant increment between two numbers?
body: <p>I'm looking for a quick way to make a list of n + 1 values with constant increment between two numbers.</p>
  
  <p>For example, if the input is:</p>
  
  <pre><code>min = 0
  max = 10
  n = 8
  </code></pre>
  
  <p>I want the output to be:</p>
  
  <pre><code>[0, 0.125, 0.250, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0]
  </code></pre>
  
  <p>Currently, I'm using a function that looks like this:</p>
  
  <pre><code>def const_increment_list(min, max, n):
      increment = (max - min) / n
      return [min + i * increment for i in range(n + 1)]
  </code></pre>
  
  <p>Is this possible to do in a single line?  My current method feels too verbose.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>You can use NumPy.</p>