Comment faire en sorte que le score ajoute pendant que c'est dans une boucle en 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