From 60d021824a6b065b6afb6396968f62b1f1b6836f Mon Sep 17 00:00:00 2001 From: birajparikh16 Date: Tue, 20 Jun 2017 03:35:30 +0000 Subject: [PATCH] Done --- build.py | 8 +++++++- build.pyc | Bin 0 -> 483 bytes tests/__init__.pyc | Bin 0 -> 166 bytes tests/test_solution.pyc | Bin 0 -> 866 bytes 4 files changed, 7 insertions(+), 1 deletion(-) 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 7a4c3b9..a2bbd33 100644 --- a/build.py +++ b/build.py @@ -1,2 +1,8 @@ def solution(list_of_nums): - """Enter Code Here""" \ No newline at end of file + dic = {"ODD":0,"EVEN":0} + for x in list_of_nums: + if x%2==0: + dic["EVEN"]+=1 + else: + dic["ODD"]+=1 + return dic diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e06f4d0b9cd214c34382d790d5ea960e0eba6ca GIT binary patch literal 483 zcmb_YO-sW-5S`t$B4R+W2;v{eC5B!iLJ`HZc#2@bq9`TJZq1sHt=SD!NN@fJf2c<< z&O|}HyYSu&GjI1j*7p8->NCMyu;2s+WQ;*{$rM-jbBQ6o<0ZDOE z2o50?2f_`5^#!y5(c>v>IJ79}!2xb_4s`@=CrddTiawk;qnD#@#Np3qhO()*g$A)g z0!zl%QDl2q$G77cebJmEc?j@mZ+DRjW$aup=T%dh?v_xgCEfa4h#i;-QjqCV1`Aau z&#RUl5TF78&gpvO0)n>Z#6Jyj3O-Sc_q4LhWaI` k#U;i1@$s2?nI-Y@dO$TCKr?M}^HWN5Qtd!C7XvW^0O2Jk#{d8T literal 0 HcmV?d00001 diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20888213900f151111ccb13f6ba8b93738a7c764 GIT binary patch literal 866 zcmchV%}(nu5QWESDNsNH>2BDtj*v>kh802xT8R}%DFV?=6l#|m@>4R-0tr^V?{FXV zJ^-9?N|D%u6`$CX8P7N4wEk~(^}ma|F)c<5?^8_PhiE*CGNN43NRiS38ATICx=#}UZ3et7j)m@qgh*;V- zU~79Dat}j+z5G@QFTkz9*g!;(tS?$hwd)WkwyS>Mwq+wSxEWlAVs+wqU)xN_674o1 zDYL2E;JHq-#z!L9WRu24!YacdUgU+Zv5KZ;ZlZfzrH`|;vQN{)qv*D*o_LmyO*AgG zi6*Ss^ky$^S{6Mdu@6OV3fDV2j2v!+y(XU}9l&u52g|3WQD|A}BDEdt1%FfnD3&BC z(%dA8>-tSz>N>+VmIi#W{w#1T*WkM)&FrW}j|HzTtdmk=tjYWR7L@