Error in py challenge question | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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