Page 179 -
P. 179
programming toolbox
Your Programming Toolbox
You’ve got Chapter 4 under your belt.
CHAPTER 4 in this chapter:
Let’s look back at what you’ve learned
Programming T ools
* files - reading data stored on disk Python T ools
* arrays - a collection variable that holds
multiple data items that can be accessed by
* open() - open a file for processing
* sorting - arranging a collection in a specific
index * close() - close a file
order * for - iterate over something
* string.split() - cut a string into multiple
parts
* [] - the array index operator
* array.append() - add an item to the end of
an array
* array.sort() - sort an array, lowest-to-
highest
* array.reverse() - change the order of an
array by reversing it
144 Chapter 4