Description
|
Program name
|
Passing a whole string to a function
|
String1.py |
Indexing
the parts of a string
|
String2.py |
Demonstrating
the immutability of strings
|
String3.py |
String
slicing
|
String4.py |
Strings
as sets, test for inclusion using ‘in’)
|
String5.py |
Strings
that are repetitive sequence
|
String6.py |
Using
string functions: converting string input to numerical
|
String7.py |
Using
string functions that return modified versions of a string
|
String8.py |
String
search functions
|
String9.py |
Version 1 of a class list problem (how
not to solve the problem)
|
|
Version 2 of a class list problem (more
appropriate solution)
|
|
List 'copy' (only the reference is copied
and not the list data)
|
|
Proper list copy (data is copied)
|
|
Passing a reference to a list as a
parameter (original list is modified)
|
|
Passing a reference to a list as a
parameter (only the local reference is changed)
|
|
2D list: a simulated world that is
randomly populated, a grid is drawn around each list element
|
|
List operations (concatenation and
membership)
|
|
List operation (membership)
|
|
Simple tuple example
|
|
Dictionary operation (creation)
|
|
Dictionary operations (deletion, checking
for membership)
|
|
Illustrating how the len function works
|
|
Length function operating in conjunction
with lists
|
|