'''
Online Python Compiler.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
def remove(list, x):
if x in list:
return list.remove(x)
mylist = [[1, 2, 3, 2, 4, 8, 2],2]
for i in range(len(mylist)):
if isinstance(mylist[i], list) == True :
mylist[i] = list(set(mylist[i]))
mylist[i].remove(2)
mylist[i].sort()
else :
if mylist[i] == 2 :
del mylist[i]
print(mylist[0])
# print(mylist)
print()