+ 1

op

For what there is the "1" in the 6 line after bracket of function sum? https://code.sololearn.com/c3CLZ3Jlq4Ls/?ref=app

19th Apr 2020, 3:27 PM
shiryaeva
shiryaeva - avatar
5 Respuestas
+ 1
It is returning 1 if any item in list satisfies the conditions
19th Apr 2020, 3:51 PM
Abhay
Abhay - avatar
+ 1
O thank you
19th Apr 2020, 3:53 PM
shiryaeva
shiryaeva - avatar
+ 1
does it add 1 to the variable k?
19th Apr 2020, 3:56 PM
shiryaeva
shiryaeva - avatar
+ 1
Yes
19th Apr 2020, 3:57 PM
Abhay
Abhay - avatar