This is Part III of Understanding Programming: A Primer, an exclusive series for EDUKWEST designed to teach you the basics of computer programming. This series is designed to be a tutorial and you will be the most successful if you work through the tutorial with your text editor open. Key in the code as it appears and try to make it run correctly yourself. You’ll find that by the end of this series, you’ll be able to develop simple programs and understand the process of computer programming.
In the last lesson, we looked at input and output, which, of course, allow us to get data into and out of our Python program. In this lesson we’ll take a closer look at one of the most important aspects of programming–variables. You may not equate this to computer programming, but you’ve likely been using variables since high school as you took courses in Algebra, Chemistry and Physics. In classic “solve for x” problems, “x” is a variable.
Let’s first take a look at how the Python programming environment handles variables.