Changes

Jump to: navigation, search

OPS435 Python Lab 4

106 bytes added, 16:16, 14 June 2017
PART 2 - Sets
:'''Perform the Following Steps:''':#Start the Within your ipython3 shell:<source>ipython3</source>:#Create , create a couple sets to work with.by issuing the following:<source>
s1 = {'Prime', 'Ix', 'Secundus', 'Caladan'}
s2 = {1, 2, 3, 4, 5}
s3 = {4, 5, 6, 7, 8}
</source>Note: '''Sets are defined by using braces { }''' as opposed to tuples that use parenthesis ( ), or lists that use square brackets [ ]'''<br><br>
:#First, access a set through the index.<source>
s1[0]
13,420
edits

Navigation menu