00:01
So in this problem we are given that we have to ask a user for a list which can have duplicate numbers.
00:12
And we must remove duplicate numbers and print out the list with just the unique numbers in the list.
00:21
So this is a very simple function.
00:23
So it's called eliminate duplicates as the question asks.
00:26
So this part is the function and that what it does is basically it initialized.
00:32
Is a non -repeating list or the list that is supposed to be the output which has non -repeating values and that's an empty list in the beginning and then we iterate through all the elements of the list the input list so let's say for n in list we'll take all the values one by one as n from the list and what we do is we just do a simple check we say if n is not in the non -repeat list then you add or append n to the non -repeat list.
01:05
This is very simple.
01:07
So what this does, for example, i'll give you a small working example.
01:11
So let's say this has 1, 2, 3, 2, 4.
01:17
And this is our input list and our non -repeating list is down here, let's say.
01:29
So i take the first n as 1...