Variables, Types, and Operations
Create variables, then meet the types one by one, from numbers and strings to booleans and the list that keeps tripping up beginners.
Articles
Creating and Using Variables in Python
Python is so simple it has no special rule for creating a variable. A variable appears automatically the moment you assign a value to a name.
Getting to Know Data Types in Python 3
A data type is the attribute that spells out which operations can be done to a variable.
Numeric Data Types in Python 3
Python has several numeric data types, such as int, float, and complex. Here is how each one behaves.
String Data Types in Python 3
A string in Python is a data type that holds one character or a run of them, and quotation marks are what mark it.
Boolean Data Types in Python 3
A boolean is a data type that holds only 2 values, true and false. It earns its keep once you work with control structures.
List Data Types in Python 3
In Python, a list is a data type that can hold many values. Other languages may be more familiar to you as arrays.