Issue with Problem- https://leetcode.com/problems/rotate-array/

Hey Support,
Could you please let me know why is the below code not updatig the nums array in leetcode editor?

nums=nums[-k:]+nums[0:len(nums)-k]
Comments (1)