title: How to print a required number
body: <p>Per the image below, I got an error while displaying the number in the second program i.e. <code>nbrs=list(range(1,11))</code> at the start of the second program... so I want to know the reason of the error in the second program, which I didn't get in the first program.</p>
  
  <p><img src="https://i.stack.imgur.com/HKiHO.png" alt=""></p>