Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Review the following program.
my_games = ["Space Invaders", "Minecraft", "Fortnite", "Tetris", "Frogger", "Centipede"] # You choose the code that goes here... # ... # ... print(my_games)
Choose the code that results in the following output:
['Fortnite', 'Frogger', 'Minecraft', 'Tetris']
my_games.remove("Centipede") my_games.sort()
my_games.remove("Space Invaders") my_games.remove("Centipede")
my_games.remove("Space Invaders") my_games.remove("Centipede") my_games.reverse()
my_games.remove("Space Invaders") my_games.remove("Centipede") my_games.sort()