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 »

01: Getting to Know Python

*This tutorial series will follow the Engineering 1D04 course at McMaster University. If you’re seeking help from another school and find that these tutorials can help you, please let me know! You’ve probably come here for help with Python, a high-level object oriented programming language. Python can be extremely useful, and is a great beginner’s language, because much of it is written in plain English. Here are a few things you need »