📅  最后修改于: 2022-03-11 14:48:36.983000             🧑  作者: Mango
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.