learn-co-curriculum / python-p3-data-structures-lab

Other
1 stars 2.81k forks source link

Description confusing? #4

Closed ckesurf closed 2 years ago

ckesurf commented 2 years ago

Canvas Link

https://learning.flatironschool.com/courses/6049/assignments/195247?module_item_id=439022

Concern

This lab was pretty straightforward. The confusion I encountered was where, in the README, it says:

You could use a loop to solve all of these, but try to expand your toolkit and use some other methods to make the job easier, like get(), append(), and sort()

but on get_spicy_food_by_cuisine, if you follow this guideline, there's no way to solve this without for loop, unless you do:

def get_spicy_food_by_cuisine(spicy_foods, cuisine):
    return [food for food in spicy_foods if food["cuisine"] == cuisine][0]

which is kinda weird, but then, in the solution here, they just use a for loop anyway.

There's also no questions that require using get(), append(), or sort(), but I also see that it probably used to be a question given this commented code. Could we update language here to avoid confusion?

Additional Context

No response

Suggested Changes

Probably just take out this line in the README? Whatever you guys think is best