From 961edc5affa9552ad5dbdcef826bd017a1ec1164 Mon Sep 17 00:00:00 2001 From: aksmungekar Date: Sat, 29 Sep 2018 09:33:10 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 165 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 179 -> 180 bytes .../__pycache__/build.cpython-36.pyc | Bin 463 -> 402 bytes q01_chocolates/build.py | 11 +++++++++-- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 185 -> 186 bytes .../test_q01_chocolates.cpython-36.pyc | Bin 1762 -> 1763 bytes 6 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 __pycache__/__init__.cpython-36.pyc diff --git a/__pycache__/__init__.cpython-36.pyc b/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7e6fbd1a2a926a13885f79af5c09124a5ae860f1 GIT binary patch literal 165 zcmXr!<>d-~$j?pHPs}dP zEzL_$%}y-R56>^kE-pw+PSsD&Pf68JD@sf*Nz94QNKDR7Eh n%*jaw>WVkkkB`sH%PfhH*DI*J#bJ}1pHiBWY6r5b7>F4F;8rXn literal 0 HcmV?d00001 diff --git a/q01_chocolates/__pycache__/__init__.cpython-36.pyc b/q01_chocolates/__pycache__/__init__.cpython-36.pyc index fa1b5bddbc8c351ed512c69f150537017faac69f..b776699f6056b06ed9ead965fb92ab252c093fa3 100644 GIT binary patch delta 53 zcmdnYxP_6!n3tC;%yoVAL=JPsME#8X+*JLd#>|xrMH~za$_&5a^fU5vQ}q+Gi*rl! z(o?e&i}b_ui?WLg5|dN)lk-zjC#x{}iLe3LR$T7K#(TbY|BmuIQ Gg%JS6_B9;< delta 283 zcmbQle4d%hn3tDJ^USNL491CE_Vp|b3=GadT$}!Wn9q zf*CZK{aymCVtB~}Bs61~Z?P67=B20JV$Mm;yTz7RP>`CJqRA4)o?988lUZDHi@7W@ zCyFaAGcPd*BEXorlA(wLsQFi{enx(7s(xZpMy9??etBL_equ_oenw()c4`sO(Cmq? m{UksNi-mv$0}~4)3zHC|03#0*5Ks1HwBlw4NrK$L!U_PFE<|ep diff --git a/q01_chocolates/build.py b/q01_chocolates/build.py index ed96c95..71c9947 100644 --- a/q01_chocolates/build.py +++ b/q01_chocolates/build.py @@ -1,11 +1,18 @@ +# %load q01_chocolates/build.py input_list = [] +def q01_chocolates(my_list=input_list): + list1=[] + z=0 + for i in my_list: + if i%2==1: + z+=i + list1.append(z) + return list1 -# Write your solution here: -def q01_chocolates(my_list=input_list): diff --git a/q01_chocolates/tests/__pycache__/__init__.cpython-36.pyc b/q01_chocolates/tests/__pycache__/__init__.cpython-36.pyc index 701653826940ef168f2717fd45f0e007bf3a5eb7..762d4e045c201d404461a3ebd37ab2b87ef60ade 100644 GIT binary patch delta 53 zcmdnVxQmg)n3tF9yX*Ssi5%vN>G~P@xvBbz*~Ph~dFiRyiADP1`9;~q1&PV2`pNkz IsT1R)0OHjX1poj5 delta 52 zcmdnRxRa5?n3tEUaL=o#i5%t%Y5E!YxvBbzNg0{?F8SqoIr)hx#rheE$=RtzMTvRY H6BD8U&Jhx& diff --git a/q01_chocolates/tests/__pycache__/test_q01_chocolates.cpython-36.pyc b/q01_chocolates/tests/__pycache__/test_q01_chocolates.cpython-36.pyc index e3c45ac6acc433a697364049e9f0d803d75e0d39..f1ad00cd5e44a148d6d22f0ca954685bdac17402 100644 GIT binary patch delta 56 zcmaFF`