How can I index individual elements in a set? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I index individual elements in a set?

28th Jun 2016, 12:07 PM
Lenival Gomes
Lenival Gomes - avatar
3 Answers
+ 1
You can't. Sets are not indexable. It's not possible to access an individual member by index.
30th Jun 2016, 7:39 PM
I S
0
indirectly , you maybe put all depurate set into a list. then you can work it . But appears be an exotic Case . Is better to choose carefully between list or set after to write code. I think , regards
22nd Jul 2016, 2:05 PM
David Jimenez Castaños
David Jimenez Castaños - avatar
0
yeah set cant index
4th Dec 2016, 2:17 PM
MANICKAM . R
MANICKAM . R - avatar