Python

Learn Python programming from scratch

144 tutorials
12 of 144 tutorials
Jul 8, 2026· 5 min read

Python Identity and Membership Operators

Learn how Python identity operators is and is not compare object memory, and how membership operators in and not in check whether a value exists inside a collection.

PythonOperatorsBeginner
Jul 8, 2026· 5 min read

Bitwise Operators in Python

Learn how Python bitwise operators AND, OR, XOR, NOT, left shift, and right shift manipulate integers at the binary level, and when to use each one.

OperatorsPythonBeginner
Jul 8, 2026· 5 min read

Operator Precedence in Python

Learn how Python determines which operator runs first when multiple operators appear in an expression, and how to use parentheses to control evaluation order safely.

PythonOperatorsBeginner
Jul 8, 2026· 5 min read

Short-Circuit Evaluation in Python

Learn how Python short-circuit evaluation works with and and or operators, why it stops evaluating as soon as the result is determined, and how to use it safely.

BeginnerPythonOperators
Jul 8, 2026· 5 min read

Common Operator Mistakes in Python

Learn the most common Python operator mistakes including confusing assignment with equality, misreading precedence, misusing identity operators, and flawed short-circuit patterns.

OperatorsPythonBeginner
Jul 10, 2026· 6 min read

Python Functions Explained

Learn what Python functions are, why they matter for organizing code, and how they form the foundation of non-trivial programs.

PythonIntermediateFunctions
Jul 10, 2026· 7 min read

Define and Call Python Functions

Learn the exact syntax for defining and calling Python functions with the def keyword, including naming rules, the function body, and how the call stack works.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Python Function Parameters and Arguments

Learn the difference between parameters and arguments, how to pass values by position and by keyword, and the rules for default parameter values.

PythonFunctionsIntermediate
Jul 10, 2026· 7 min read

Return Values in Python Functions

Learn how Python functions send results back with the return statement, how to return multiple values, and the difference between returning and printing.

FunctionsPythonIntermediate
Jul 10, 2026· 7 min read

Variable Scope in Python

Understand Python's LEGB scope rules: local, enclosing, global, and built-in. Learn where variables are visible and why functions isolate their local state.

PythonFunctionsIntermediate
Jul 10, 2026· 7 min read

Local and Global Variables in Python

Learn the practical differences between local and global variables, when to use each, and how to avoid the most common scope-related bugs in Python functions.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Positional and Keyword Arguments in Python

Master the two ways to pass arguments to Python functions: by position and by keyword. Learn the rules for mixing them and when to choose each style.

PythonFunctionsIntermediate