From 64c10b2207b3ed1c9687dbd186ce20bfd962de16 Mon Sep 17 00:00:00 2001 From: avdeshmishra0214 Date: Sat, 29 Sep 2018 05:07:13 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 170 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 183 -> 192 bytes .../__pycache__/build.cpython-36.pyc | Bin 949 -> 861 bytes q01_longest_even_word/build.py | 19 +++++++++++++++++- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 189 -> 198 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1915 -> 1924 bytes 6 files changed, 18 insertions(+), 1 deletion(-) 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..df8d4437e74ffe8fcbfb07ab67c2b2c1d03818cd GIT binary patch literal 170 zcmXr!<>gxVe_b>q0|UcjAcg~wfCCU0vjB+{hF}IwM!%H|MId1W@heTZlX-=vg$iiYEW&i*>FfLaB literal 0 HcmV?d00001 diff --git a/q01_longest_even_word/__pycache__/__init__.cpython-36.pyc b/q01_longest_even_word/__pycache__/__init__.cpython-36.pyc index 8ad4b6849d62317c5e52518abbc96bf938016804..5f205837fde10b569ba568599de4a09c25a6383a 100644 GIT binary patch delta 58 zcmdnacz}_^n3tDp;s15f6FJP)a`iLvb5r#b%TiK{GjcPFGl~)oj0{cm!}E)>iwhEy OQ}vVcQ&K0!L<0a!`V^u7 delta 49 zcmX@WxSf&1n3tF9%;9HI6FJOfQ}i?Pb5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3nr#U F0|2G@5y$`l diff --git a/q01_longest_even_word/__pycache__/build.cpython-36.pyc b/q01_longest_even_word/__pycache__/build.cpython-36.pyc index 7926364e1294456cec2db64f01401301047eda48..9742cc23a40c3941c8bd04fbfc2ca21ab8a6d2e5 100644 GIT binary patch literal 861 zcmZuu%Wl*#6t(l1hHAP&1tG-3+mWiKGwlYcLP)SKNJT0NLXjuFGjWsHsqJ~Rnpq8> zz)!H^f3juOUtq=cOhH|c$k(rP?>X1!^x$B>NPd3lhlKnhkG=rcZ*kZo41x$+lZ=QU zqaqa1H*(h2 zimd1s^U-?kO b9q5wtMvGYuZz9~;K87TS!lWOeD-rzzZE^bp literal 949 zcmZvb&2G~`5XWcNA8|udArMsqmx!AYiW|YPsyO7#r8ld{a=e?w$;R96Zb%zB5>k*_ zjywkM!V~z4gw$8)iCMd)Al25+u4i^<{`0f_uG47`fBueNQ-ELa&xOzM0f+9PVZexh z*v?dt1&t{I<}mjw#111T5PCPb3qFRV>a3(&MHz8xGF;3mOA6!pN3v zNJ(at(Gs?F1I8&~=5Aq2zL6_3CUud(c*eiRy<0N05x4@3cv!xPps$H+sPRj>CCr~w zHD>+^lyufIf%Rb}=Nd|<3(W5VN^Y$WRw_5VcPW>ur=?h$To%14S9~3uuHKw7G`FPp zw*^bY$MGD8evf7XC473jAqFrp>7on<`$!6lyN%}|GN#|@xr=4#jm@Jh7o_C~UWBxw z{lkjn`0QDF`Ul*m(Nr#Yl#Zr(G?c4C$du`5$o1UFvuLc+%%mcjrrDe;l@{}4nyb8+ zB-u0-m~+CDL3DmNNQA_-HVOaCi^L|6M$25V{@LYi`$**4WO8wK+_o(>{jI}CkM)m) z%u=C`adCg@KQi_O*JKWGQImPPAq@ovUAXI>+}Os|4w{fEOH;M%npCb;SO=6igl-&YUKn0v9QW`E zzli<%I~~NY#<@a16U9?wK^4ozh^wSNe6O>E`BY$yl~%oYl#nf|pP>QTCcAjQ#Cw;x vbdRWg^oFk5!zu0*!p!^kKS(XVjyJtqG7l80;AkP)Qt)GoO(N^lj7sk diff --git a/q01_longest_even_word/build.py b/q01_longest_even_word/build.py index 0685739..1527c96 100644 --- a/q01_longest_even_word/build.py +++ b/q01_longest_even_word/build.py @@ -1,9 +1,26 @@ +# %load q01_longest_even_word/build.py # Default imports import re +input1 = 'time to write a great code' # Write your solution here : def q01_longest_even_word(sentence): + maxlen = 0 + input2 = sentence.split(' ') + for i in input2: + if (len(i)%2 == 0 and len(i) > maxlen): + maxlen = len(i) + finalop = i - + if maxlen == 0: + return (0) + else: + return (finalop) +data1 = 'One great way to make predictions about an unfamiliar nonfiction text is to take a walk through the book before reading.' +data2 = 'photographs or other images, readers can start to get a sense about the topic. This scanning and skimming helps set the expectation for the reading.' +data3 = ' testing very9 important' +q01_longest_even_word(data3) + + diff --git a/q01_longest_even_word/tests/__pycache__/__init__.cpython-36.pyc b/q01_longest_even_word/tests/__pycache__/__init__.cpython-36.pyc index 7782007a6d513192b9ba7509abb59f87e256a09f..ba3ef46e18033e8b235ec15d357ba06c23463075 100644 GIT binary patch delta 58 zcmdnXc#M(5n3tEUnQeXaL=JPcV*QN#+*JLXiuGMmi?d7e3nr!} F0syMt5$pf} diff --git a/q01_longest_even_word/tests/__pycache__/test.cpython-36.pyc b/q01_longest_even_word/tests/__pycache__/test.cpython-36.pyc index a62a5d8dc0a25e6368ba602812bc8d872975e0fa..eb8f239da210b5a051d8674952371715f4f8a8f1 100644 GIT binary patch delta 61 zcmey(*TT