Skip to content

Commit

Permalink
Update unique_in_order.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 18, 2024
1 parent 270a50e commit 9dafa55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kyu_6/unique_in_order/unique_in_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def unique_in_order(iterable: Iterable) -> list:
"""
Unique In Order.
Make Unique In Order.
Takes as argument a sequence and returns a list
of items without any elements with the same value
Expand All @@ -23,4 +23,5 @@ def unique_in_order(iterable: Iterable) -> list:
for i in iterable:
if len(result) == 0 or i != result[-1]:
result.append(i)

return result

0 comments on commit 9dafa55

Please sign in to comment.