13,420
edits
Changes
→PART 2 - Sets
:#First, access a set through the index.<source>
s1[0]
</source>This should have created an error, this is not how to access data inside a set because they are '''un-ordered'''. Instead, you should use the method (used in the previous section) to check to see if a value is contained within the set.<br><br>
:#To demonstrate, issue the following:<source>
'Ix' in s1