+ 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
3 Antworten
+ 8
https://code.sololearn.com/ccaVppu72YRD/?ref=app
+ 2
I did! It's not working
+ 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