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
<pre><code>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
</code></pre>

<p>I want to clean my list. My list contains numbers and strings. In the above list l i have both 1 and "1". I want to remove either 1 or "1". I want the output as <code>[1, 2, 3, 4, 5, "nag", "venkat", 6, 7]</code></p>