title: space complexity for python function
body: <p>could someone help to get the space complexity for this python function?</p>
  <pre><code>input: nums = [1, 2, 3, 4, 5, 6, 7, 8....]
         m = integer 
  
  for i in range(len(nums)):
      temp = nums[i:i+m]
  </code></pre>
  <p>should this space complexity as o(m), or o(n*m), and why? Thank you!</p>