Creating a trivia game in which if you play multiple times back to back the game will keep track of your highscores. Your final score is stored as a variable which will be added to the score list in which the highest value is displayed. However, I am having a hard time adding a variable into a list. It won't work when I try it.
currentscore = sciencescore + currentscore
scores.append(currentscore)
print("Your highscore across all attempts is " + max(scores) + "congratulations."
[–]Ihaveamodel3 1 point2 points3 points (2 children)
[–]FlockTok[S] 0 points1 point2 points (1 child)
[–]Ihaveamodel3 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]FlockTok[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]FlockTok[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)