def rotate_left3(nums): # result = index 1, 2 (and so on if needed) and then adds index 0 to the beginning using + nums[:1] result = nums[1:] + nums[:1] return result if also an option Mbkelite
def rotate_left3(nums): # result = index 1, 2 (and so on if needed) and then adds index 0 to the beginning using + nums[:1] result = nums[1:] + nums[:1] return result if also an option