Modified Ur amazing code to remove the duplicated, though not require for the problem

'''

class Solution(object):

def removeDuplicates(self, nums):

newTail=0
for i in range(1,len(nums)):
if nums[i]!=nums[newTail]:
newTail+=1;
nums[newTail]=nums[i]
for j in range((newTail+1),len(nums)):
nums.pop(-1)
return len(nums),nums

print(Solution().removeDuplicates([1,1,2,3,5,6,6]))

'''