Skip to content

Commit c72b22e

Browse files
committed
TR update, second round
1 parent 1aee15a commit c72b22e

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

python-list/repeated.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,3 @@ def get_unique_items(list_object):
44
if item not in result:
55
result.append(item)
66
return result
7-
8-
9-
print(get_unique_items([2, 4, 5, 2, 3, 5]))
10-
11-
12-
def get_unique_items_tail(list_object):
13-
result = []
14-
for item in reversed(list_object):
15-
if item not in result:
16-
result.insert(0, item)
17-
return result
18-
19-
20-
print(get_unique_items_tail([2, 4, 5, 2, 3, 5]))

0 commit comments

Comments
 (0)