Jak dodać wynik, gdy jest w pętli w Python



To avoid the values of score being reset to 0 on every iteration of the loop you should initialize both variables above the while loop.
Frantic Fox