I came up with the soultion of the problem by mistake, but then I relized why it was so simple.
def remove_duplicates(x): # this is the defined function
dup_list= # this is the list that will keep all the charachers from x
for i in x: # this is looping into X
if i not in dup_list: # basically this says, if the number i is not in the dup_list add it, if it is do not add it.
dup_list.append(i)# this actually adds the number that is not already in the list.
return dup_list # this says ok at the end of the fuction return me the list that we created
[4, 44, 33, 2, 1]
I hope this helps to clarify the excersie, by the way I am learning so I do not know for sure if what I said make sense for you or anyone, so feedback is highly appreciated.