Get startedGet started for free

Choosing a data structure

You're building your recipe scaler and want to categorize recipes by cuisine type. You've defined five standard categories that every recipe must fit into: "Italian", "Mexican", "Asian", "American", and "Mediterranean". These categories are your script's foundation and should never be accidentally modified or deleted as other developers work on the project.

Which data structure would be most appropriate for storing these fixed cuisine categories?

This exercise is part of the course

Introduction to Python for Developers

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise