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
What will the following program print to the console when it runs?
three_day_forecast = ["53", "54", "52"] five_day_forecast = ["53", "54", "52", "57", "58"] full_forecast = list(three_day_forecast) + list(five_day_forecast[3:]) for index, temp in enumerate(full_forecast): print("Day " + str(index+1) + ": " + temp + "°F")
Day 1: 53°F Day 2: 54°F Day 3: 52°F Day 4: 58°F
Day 1: 53°F Day 2: 54°F Day 3: 52°F Day 4: 57°F Day 5: 58°F
Day 1: 53°F Day 2: 54°F Day 3: 52°F Day 4: 53°F Day 5: 54°F Day 6: 52°F Day 7: 57°F Day 8: 58°F
Day 1: 53°F Day 2: 54°F Day 3: 52°F