Python

Learn Python programming from scratch

344 tutorials
12 of 344 tutorials
Jul 6, 2026· 5 min read

Python Variables Explained

Understand what Python variables are, how they store and reference data, and why Python's variable model is different from other programming languages.

PythonVariablesBeginner
Jul 6, 2026· 5 min read

Create and Assign Variables in Python

Learn every way to create and assign variables in Python, from basic single assignment to expressions, type hints, and practical patterns beginners use every day.

BeginnerVariablesPython
Jul 6, 2026· 5 min read

Reassign Variables in Python

Learn how to reassign Python variables to new values, how reassignment interacts with mutable and immutable types, and the patterns that keep your code predictable.

BeginnerVariablesPython
Jul 6, 2026· 5 min read

Assign Multiple Variables at Once in Python

Learn how to assign multiple Python variables in a single line using tuple unpacking, swap values without a temporary variable, and use starred expressions for flexible assignments.

BeginnerPythonVariables
Jul 6, 2026· 5 min read

Integer Data Type in Python

Learn how Python integers work, including unlimited precision, arithmetic operations, integer literals in different bases, and common integer methods.

BeginnerData TypesPython
Jul 6, 2026· 5 min read

Float Data Type in Python

Learn how Python floats work with IEEE 754 double precision, why 0.1 + 0.2 is not exactly 0.3, and how to handle floating-point arithmetic correctly.

PythonData TypesBeginner
Jul 6, 2026· 5 min read

Boolean Data Type in Python

Learn how Python booleans work as a subclass of integers, how truthiness evaluates any value, and how to use boolean logic in conditions and expressions.

Data TypesBeginnerPython
Jul 6, 2026· 5 min read

The None Data Type in Python

Learn how Python's None singleton represents the absence of a value, when to use None as a default, and how to check for None correctly with the is operator.

Data TypesPythonBeginner
Jul 6, 2026· 5 min read

Check Data Types with Python type()

Learn how to check the type of any Python value using the type() built-in function, the isinstance() function for flexible checks, and when to use each approach.

Data TypesBeginnerPython
Jul 6, 2026· 5 min read

Numeric Precision in Python

Learn how Python handles numeric precision across integers, floats, and complex numbers. Understand floating-point limitations and how to use Decimal for exact arithmetic.

PythonBeginnerData Types
Jul 6, 2026· 5 min read

Common Data Type Mistakes in Python

Learn the most common Python data type mistakes beginners make, including mutable defaults, identity vs equality confusion, and type assumption errors.

Data TypesPythonBeginner
Jul 6, 2026· 5 min read

Access Characters in Python Strings

Learn how to access individual characters in Python strings using zero-based indexing, negative indices, and the len() function to avoid IndexError.

BeginnerStringsPython