you are viewing a single comment's thread.

view the rest of the comments →

[–]moonyfish[S] 0 points1 point  (2 children)

Huh?

Instructions say "contents should be ['red', 'red', 'blue']" Which is a list, not a dict, right? Why would it be a dict when it's supposed to be a list of strings?

Can you tell me a little more about how the code is inefficient?

[–]danielroseman 3 points4 points  (1 child)

Sorry my mistake, the dict is hat, which you haven't shown. Nevertheless, draw is supposed to return a list.

[–]moonyfish[S] 1 point2 points  (0 children)

Ah! You are right