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 tuple. Which code will print only the high scores, no names, to the console when it runs?
hi_scores = (("Sam", 1500), ("Vanessa", 1250), ("Elenor", 1130))
print(hi_scores[1][2]) print(hi_scores[2][2]) print(hi_scores[3][2])
print(hi_scores[0][1]) print(hi_scores[1][1]) print(hi_scores[2][1])
print(hi_scores[0][1]) print(hi_scores[0][3]) print(hi_scores[0][5])
print(hi_scores[0][0]) print(hi_scores[1][0]) print(hi_scores[2][0])