03: Lists

Introduction Many programming tasks require the programmer to manipulate data in many ways. Often, we are given a finite set of data and must perform some sort of operation on it (arithmetic, sorting, etc.). Let’s look at one way to handle sets of information in Python. Let’s say we’re given a grocery list, and told to store it into a single variable, groceryList. Python has a built in data type called a »

02: The For Loop

Introduction In all areas of business, there are often times where we need to repeat a single task several times. Sometimes, we have to do something two or three times before we can really say we’re “done”. Even more often, however, are times when we must repeat ourselves hundreds or thousands of times! Let’s say we have a simple example, where we must start with the number 20 and must subtract one from »