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 code should be added to line 8 to successfully print 28 in the console?
## Total Number of Pets at Lawson's Pet Store def quadrupeds(): dogs = 2 cats = 4 mice = 6 quads = dogs + cats + mice # What code goes here? def animals(): quads = quadrupeds() fish = 13 parrots = 3 total_animals = quads + fish + parrots return total_animals print(animals())
return quadrupeds()
return
return quads
return dogs, cats, mice