Codecademy Forums

Elections Results

In the exercise of elections results I don’t understand why I can’t use

total_ceballos = survey_responses.count("Ceballos")

Instead of using the for loop for the counting.

Thanks for your help

Link https://www.codecademy.com/paths/data-science/tracks/intro-statistics-numpy/modules/dspath-intro-statistics/projects/election-binomial

Who says that you can’t?

1 Like