Why it's not updating??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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