If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Storing and updating lists

Problem

This code snippet stores and updates a list of high scores for a video game:
highScores ← [750, 737, 714, 672, 655, 634, 629, 618, 615, 610] 

DISPLAY(highScores[5])
INSERT(highScores, 5, 668)
INSERT(highScores, 2, 747)
REMOVE(highScores, 12)
REMOVE(highScores, 11)
DISPLAY(highScores[5])
What does this program output to the display?
Choose 1 answer:
🤔
Stuck?
Stuck?