I want to clean the element in a list. If my list contains number 1 ans a stirng "1" i want to keep only one element either integer or sting. :     l = [1,2,3,4,5,'1','2','3','4','nag','nag','venkat',5,6,7]
    l1 = []
    for i in l:
        if (str(i) not in l1) and (i not in l1):
            l1.append(i)
    print l1
    """ i want to clean my list my list contais numbers and stings.
        in the above list l i have both 1 and "1"
        i want to remove either 1 or "1"
        i want the out put as 
        [1,2,3,4,5,"nag","venkat",6,7]


l = [1,2,3,4,5,'1','2','3','4','nag','nag','venkat',5,6,7]
    l1 = []
    for i in l:
        if (str(i) not in l1) and (i not in l1):
            l1.append(i)
    print l1
    """


