Want to receive Question of the Day updates? Subscribe Here
Python Question of the Day
March 5, 2025
IncorrectCorrectNo Answer was selectedInvalid Answer
The following program prints the three highest scores of a video game to the console. Recently Vanessa achieved a new high score! What line of code will update her score before the high scores print to the console?
hi_scores =["Sam","Vanessa","Elenor",[1500,1460,1130]]# What line of code goes here?
player_one =str(hi_scores[0])+" "+str(hi_scores[3][0])
player_two =str(hi_scores[1])+" "+str(hi_scores[3][1])
player_three =str(hi_scores[2])+" "+str(hi_scores[3][2])print(player_one)print(player_two)print(player_three)