I understood the correct answer, but can't understand why my code didn't work.
def remove_duplicates(source): result =  if len(result)==0: result = [source] else: for j in range(len(result)): for i in range(len(source)): if source[i] == result[j]: break else: result.append(source[i]) return result
j are the indexes, and
result[j] are the actual values, but
source[i] never gets appended to
result. Any advice would be appreciated. Thanks.