title: Python - Create a List Starting at a Given Value and End at Given Length
body: <p>How can I create a list that will have a starting value and length of the list.  For example, if I wanted to make a list starting at 17 that was of length 5:</p>
  
  <pre><code>num_list = [17, 18, 19, 20, 21]
  </code></pre>
  
  <p>I have tried the following however it is not producing the correct results</p>
  
  <pre><code>def answer(start, length):
  id_arr = list(range(start, length))
  print(id_arr)
  
  answer(17, 10)
  
  Output: []
  </code></pre>
  
  <p>And I understand the reason for this because, the starting value, in this case, is 17, however, it is trying to end at value 10 thus creating an empty list so how can I make the value of <code>length</code> be the size of the list and not the ending value of the list?</p>