MulaiMulai sekarang secara gratis

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?

Latihan ini adalah bagian dari kursus

Introduction to Python for Developers

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga