This is another article in the series of Python Practice Programs in Python Lists. In this article, we will see how to remove the duplicate element from the list and store it in a sperate list. Here we are taking the two list list_A with duplicate value and list_B blank list in which we will store the final list which will not have duplicate value.
###### Take a list and remove the duplicate element ############
list_A = [4,55,2,0,55,0,'e',0,7,18,9,9]
list_B = []
for num in list_A:
if num not in list_B:
list_B.append(num)
print(list_B)