From 38b3fa69712fb973352852d57c9be5726247c54b Mon Sep 17 00:00:00 2001 From: Francesco Date: Wed, 13 Dec 2023 20:07:49 +0100 Subject: [PATCH] fix(structures): solved BUG071 --- source/BUG/structures.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/BUG/structures.py b/source/BUG/structures.py index 10180a1..db4d2e2 100644 --- a/source/BUG/structures.py +++ b/source/BUG/structures.py @@ -82,7 +82,11 @@ def get_unique_elements(lst: list) -> list: """ BUG071: get_unique_elements should return a list of unique elements, not the same list. """ - result = lst + temp = [] + for element in lst: + if element not in temp: + temp.append (element) + result = temp return result