title: Python why numpy linspace gives me floats between two integers with uneven difference
body: <p>I am using numpy to generate a list of values between the two values. For example, I need a list of 10 values between 1 and 2 including both. </p>
  
  <p>My code and output: </p>
  
  <pre><code>idf_list = np.linspace(1,2,10)
  print(idf_list)
  Out[14]: 
  array([1.        , 1.11111111, 1.22222222, 1.33333333, 1.44444444,
         1.55555556, 1.66666667, 1.77777778, 1.88888889, 2.        ])
  </code></pre>
  
  <p>I am surprised by looking at the my present output because I was expecting something like below.</p>
  
  <p>My expected output: </p>
  
  <pre><code>print(idf_list)
  array([1,1.1,1.2,......,1.8,1.9,2])
  </code></pre>
  
  <p>Is numpy linspace wrong to use? or am I use it wrongly? How to get my expected output?</p>