From 4705d1d662de2a3e5a64ee6b0bbf48d456674510 Mon Sep 17 00:00:00 2001 From: sagarambalam Date: Tue, 20 Jun 2017 06:03:27 +0000 Subject: [PATCH] Done --- build.py | 13 ++++++++++++- build.pyc | Bin 0 -> 548 bytes tests/__init__.pyc | Bin 0 -> 165 bytes tests/test_solution.pyc | Bin 0 -> 863 bytes 4 files changed, 12 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..516d884 100644 --- a/build.py +++ b/build.py @@ -1,2 +1,13 @@ def solution(list_of_nums): - """Enter Code Here""" \ No newline at end of file + e=0 + o=0 + for i in list_of_nums: + if(i%2==0): + e=e+1 + else: + o=o+1 + + return {'ODD': o, 'EVEN': e} + +p=solution([1,2,3,4,5]) +print p diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4133c8c1c3bef6634b747b0de4035037078a68e4 GIT binary patch literal 548 zcmb`C-Acni5QWbsP5o^V1bg8Ni@mB~p~ZrfG`nq=CfVBEK!x;5pUT(r z1)SXqzJLky?a$2FIpcq~j^nTXONQUCN$Wj@jtCt11SWu>Jp=c^eeec&fJJ~0h6#gU zct9;CG9U~>JK3|H)Hz)L XIdr>!ws~79UghG>*|a8(PA=IG!!&9o literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a62cdbe5b46fa257a07e3243a5e5574474824604 GIT binary patch literal 165 zcmZSn%**v*t4Cxq0~9ar literal 0 HcmV?d00001 diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000000000000000000000000000000000000..327ebbe2309d9fba4994580a3dda5c925bf3aad5 GIT binary patch literal 863 zcmchV&raJw5XNVn5RyT&yL#3ETP)&8!bda0;)) zdm;4!;G1;_5_h`teBK?;&irQAoqxN-$A_O6Gg^-h-rr&T31aXlDu_x&Q$@-|WEIU7 znGW3(t%xqB5t%M!@fO0}6Gp5s^L@yvWq+*M`VZ?xRu_$Tb+subp+8{!5n@Sdpd>OQ zYnp{jGl>zXZP+o4rw~wqr3JeK*lj=ph}k03BePAWPm3O{6x~I1OY|EG(g7WqA*~|p z*!Xtf>joccXR*MZyy=A3;7(v%BqB&IG%c;V0mO^%*Ldu@vJjb^O-^F*dWpPjTwzk# z?ROxW*)IL$Z=;JgMs~0*=52^EuVPu zywau3b3Y7=vNlbDWh(u@qP{C{Dwhz>N{+Ip)+a1A3%49WDu@Bjb+ literal 0 HcmV?d00001