0

Error in py challenge question

Hi, I think I have spotted an issue with one python question. You may find it here: https://spaces.hightail.com/space/IX2qKZAFK8 I think the right answer should be “frozenset({‘age’, ‘name’,’sex’})” but not “frozenset({‘age’, ‘sex’, ‘name’})” - name and sex should be switched in places. What do other think? Please don’t pat attention to the selection in the screenshot. Cheers.

24th Apr 2019, 6:36 PM
viktoras ciumanovas
viktoras ciumanovas - avatar
2 Answers
+ 2
sets are unordered, the elements may appear in any order. A frozenset is an immutable set, but it is still unordered
24th Apr 2019, 7:22 PM
Anna
Anna - avatar
+ 1
I see now. Was thinking it might have an order still. thank you for explaining Anna
24th Apr 2019, 7:23 PM
viktoras ciumanovas
viktoras ciumanovas - avatar