title: Array rotation in python with given number of moves
body: <p>given an array of length n with k rotation to perform.i have tried this but getting error</p>
  
  <pre><code>shifted = []
  size , rotation = [int(size)for size in input().split()]
  arr= [int(size) for size in input().split()]
  for loop in range(len(arr)):
    indx = (loop+rotation)%len(arr)
    shifted[indx:indx] = arr[loop]
  
  print(shifted)
  </code></pre>
  
  <p>i got this error:
      shifted[indx:indx] = arr[loop]
      TypeError: can only assign an iterable</p>