Changes

Jump to: navigation, search

OPS435 Python Lab 4

196 bytes added, 09:27, 14 June 2017
PART 1 - Tuples
::*'''Data protection''' (eg. values are are NOT allowed to change like income tax rate, social insurance number, etc)
::*The data structure in a tuple cannot be changed (eg. '''structure cannot be corrupted''')
::*Tuples can be used as '''keys in data dictionaries''' (which are NOT allowed to change)
::*Tuples allow for '''faster access''' than lists
:Term to indicate that a data structure cannot be changed is called '''immutable''' (as opposed to '''mutable''' which means the data structure can be changed).
:A Python Tuple is a number of immutable Python values. This is similar to a list in a lot of ways, except that, the value inside cannot be changed.
:'''Perform the Following Steps:'''
:#Start by opening the ipython3 shell<source>
13,420
edits

Navigation menu