Aan de slagGa gratis aan de slag

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?

Deze oefening maakt deel uit van de cursus

Introduction to Python for Developers

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen