My code won't give me the right value from my Python set. What am I doing wrong?

...more code above...
answerset = {18, 2, 14, True, False, 7, True}
print(answerset[2])

Just keeps saying TypeError: 'set' object is not subscriptable. I have more values to add, but it's broken.
system
meraa code mujhe mere paythan set se sahi mulya nahin degaa.main kya galat kar rahaa hum?

... adhik code upar ...
uttar = {18, 2, 14, sach, galat, 7, sach}
print (uttar [2])

bas tiperor kehete hai: 'set' object sabscript karne yogya nahin he.mere paas jodne ke liye or adhik mulya hai, lekin yah tut gaya he.
user
aap ek prakaar kii truti dekh rahe hai kyonki aap anukraman kaa upyog karke set main kisi item ko kol karne kaa prayaas kar rahe hai.paythan main, set aniyantrit hai, isliye unke mulyon ko suchi, tuples or shabdkoshon ko anukramit karne ke saath acces nahin kiya ja saktaa he.ek set main item acces karne ke liye, aap set par is tarah se `loop ke liye` ke saath punrariti kar sakate hai:

# ... adhik code upar ...
uttar = {18, 2, 14, sach, galat, 7, sach}
uttar main uttar ke liye:
    print (uttar)

yah set `uttar 'main prayek item ko print karegaa, kyonki` for` loop main `print ()` kathan kaa upyog karke `uttar' ke rup main` uttar 'ke rup main.
assistant
<|system|>
</s>
<|user|>
meraa code mujhe mere paythan set se sahi mulya nahin degaa.main kya galat kar rahaa hum?

... adhik code upar ...
uttar = {18, 2, 14, sach, galat, 7, sach}
print (uttar [2])

bas tiperor kehete hai: 'set' object sabscript karne yogya nahin he.mere paas jodne ke liye or adhik mulya hai, lekin yah tut gaya he.</s>
<|assistant|>
aap ek prakaar kii truti dekh rahe hai kyonki aap anukraman kaa upyog karke set main kisi item ko kol karne kaa prayaas kar rahe hai.paythan main, set aniyantrit hai, isliye unke mulyon ko suchi, tuples or shabdkoshon ko anukramit karne ke saath acces nahin kiya ja saktaa he.ek set main item acces karne ke liye, aap set par is tarah se `loop ke liye` ke saath punrariti kar sakate hai:

# ... adhik code upar ...
uttar = {18, 2, 14, sach, galat, 7, sach}
uttar main uttar ke liye:
    print (uttar)

yah set `uttar 'main prayek item ko print karegaa, kyonki` for` loop main `print ()` kathan kaa upyog karke `uttar' ke rup main` uttar 'ke rup main.</s>
