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?
Questo esercizio fa parte del corso
Introduction to Python for Developers
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio