Printing survey results

Write code · Basic · §7.2 Going through containers

This dictionary holds how many people chose each option in a survey. Use items() to get each option and its count, and print only the options that 10 or more people chose, one per line, like Agree: 24 people.

Starter code

answers = {"Agree": 24, "Disagree": 18, "Not sure": 8}

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.