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 code print to the console when it runs?
favorite_pets = ["mice", "dogs", "cats", "turtles"] print("My favorite pets are: ") for pet in favorite_pets: print(pet)
My favorite pets are: mice, dogs, cats, turtles
My favorite pets are: mice dogs cats turtles
My favorite pets are: “mice” “dogs” “cats” “turtles”