+ 2

Why it's not updating???

In my code after completion of function a_wins and b_wins are not updating. https://code.sololearn.com/cwniok135pPw/?ref=app

26th Jun 2019, 3:24 PM
Jayakrishna
3 Answers
+ 8
https://code.sololearn.com/ccaVppu72YRD/?ref=app
26th Jun 2019, 5:35 PM
ŠŠøŠŗŠ¾Š»Š°Š¹ ŠØŠ°ŠæŠ¾Š²Š°Š»ŠµŠ½ŠŗŠ¾
ŠŠøŠŗŠ¾Š»Š°Š¹ ŠØŠ°ŠæŠ¾Š²Š°Š»ŠµŠ½ŠŗŠ¾ - avatar
+ 2
I did! It's not working
26th Jun 2019, 4:35 PM
Jayakrishna
+ 1
That's because you have used a_wins and b... in parameters of your function. Therefore anytime you update them only the function scope 'wins' are updated. To solve it simply, just change the name of the parameters of the function
26th Jun 2019, 4:16 PM
Seniru
Seniru - avatar