Hi, I just need a clarification on this instruction. On Task 6, it asks which recipes require one egg and says to use a logical statement to get “True” or “False” for each value of
The solution shows the code
one_egg = recipes[(eggs == 1)] and the output is an array. Am I misunderstanding what the task is asking for? It asks for which recipes and then want us to use a logical statement to GET “True” or “False” value for each value of the variable “eggs”. That means it wants boolean result and not an array, no?
The way I did it:
one_egg_bool = (eggs == 1)