Python Tutorial (2) Variables

Variables in Python are very simple. A variable is something that has a name and a value. And to get a certain value from something, we ask for the variable name, and it gives us the variable value. So if I was keeping track of ages, I could say: john = 25. And to get Johns age I would simply type john.

We will assign variables and use them in the Python GUI (IDLE). We will reset the shell and lose track of the previous things we typed in, so you can get familiar with the shell!

Post Author: hatefull