From 5536c6dee37d0dca522c10edab99c5cb837d46d2 Mon Sep 17 00:00:00 2001 From: vinod-boga Date: Thu, 14 Sep 2017 02:19:24 +0000 Subject: [PATCH] Done --- build.py | 14 +++++--------- build.pyc | Bin 0 -> 439 bytes tests/__init__.pyc | Bin 0 -> 168 bytes tests/test_solution.pyc | Bin 0 -> 862 bytes 4 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 build.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_solution.pyc diff --git a/build.py b/build.py index 6d455db..63b743a 100644 --- a/build.py +++ b/build.py @@ -1,9 +1,5 @@ -def solution(list): - ''' - Enter your code here - ''' - unique = [] - for x in list: - if x not in unique: - unique.append(x) - return (unique) \ No newline at end of file +def solution(l): + mylist = list(set(l)) + return mylist + +print solution([2,3,5,3,2,1,4]) diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aea4979a6707fa875170f3ccb8232dd53dc3b58b GIT binary patch literal 439 zcmcIfF-`+95M1Xj2_Vr>@P=!Q6Nxg4kSIu%0ty7(#p?tscJ_4kMT!I!e2Ne80UiLm z2NEy9+8K|$v-Y_7JU#jPcz>|)yN-CjVkFIk0B-<~0FJc+8~_$Qvn~OLuo=Uvf|~`7 z;I10;gjGxfM!~pdq;sasrQjLF%=N-r@ql=jmAG@s6nx5A=90@lr(y_s#2gROtyn=% zX~D`oQFLbScZ7OHo7&t{yG>1Pow0<@Os1E*b&>W?W7h<4>+F(Vw-mM9W>%dKc+niP xd^%C+vZtNAnIsOVGvy_mmrQ;rBuy{PWgq@lC%^!d0!9La3_uB(2#_Is0IUI? zM*+wN45KEM>mM4CAm)w<9u&HMj>>hm$)Gg&svOO<8bOqP{a)`rrQ w*Syd@98hxl_ZpBdwj~C8f%Qx~Hj~l<_`1C!&kiWdKlhu>o!qiSFRvH=0-G(w5&!@I literal 0 HcmV?d00001