Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Podcast →
    Hear what’s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Tutorial Writer Become a Video Instructor
  • Search
/
  • Join
  • Sign‑In

Table of Contents

  • for Loop
  • while Loop
  • Nested Loops
  • Loop Control Statements
  • Related Resources
(clear filter)

Python Glossary/

  • absolute import
  • abstract base class (ABC)
  • abstract method
  • annotation
  • application programming interface (API)
  • args (arguments)
  • argument
  • array
  • ASCII
  • assertion
  • assignment
  • assignment expression
  • asynchronous context manager
  • asynchronous generator
  • asynchronous generator iterator
  • asynchronous iterable
  • asynchronous iteration
  • asynchronous iterator
  • asynchronous programming
  • attribute
  • awaitable
  • base class
  • BDFL
  • binary file
  • Boolean
  • buffer protocol
  • bytecode
  • bytes-like object
  • callable
  • callback
  • class
  • class method
  • closure
  • cls (argument)
  • code style
  • collection
  • comment
  • composition
  • comprehension
  • concurrency
  • console
  • context manager
  • control flow
  • coroutine
  • coroutine function
  • CPU-bound task
  • CPython
  • data class
  • dataframe
  • data structure
  • debugging
  • decorator
  • deep copy
  • dependency
  • descriptor
  • dictionary
  • dictionary view
  • docstring
  • dot notation
  • duck typing
  • EAFP
  • encapsulation
  • escape sequence
  • exception
  • expression
  • f-string
  • function
  • functional programming
  • function annotation
  • garbage collection
  • generator
  • generator expression
  • generator iterator
  • generic function
  • generic type
  • Global Interpreter Lock (GIL)
  • hashable
  • higher-order function
  • identifier
  • IDLE
  • immutable
  • import path
  • indentation
  • indexing
  • inheritance
  • input/output (I/O)
  • instance
  • integrated development environment (IDE)
  • interpreter
  • interpreter shutdown
  • I/O-bound task
  • iterable
  • iteration
  • iterator
  • JavaScript Object Notation (JSON)
  • JIT compiler
  • kwargs (keyword arguments)
  • LBYL
  • linter
  • literal
  • loader
  • loop
  • magic method
  • mapping
  • metaprogramming
  • method
  • method overriding
  • method resolution order (MRO)
  • module
  • mutable
  • named tuple
  • name mangling
  • namespace
  • namespace package
  • nested scope
  • non-blocking operation
  • non-public name
  • object
  • object-oriented programming (OOP)
  • package
  • parameter
  • PEP 8
  • pip
  • polymorphism
  • protocol
  • protocol (special methods)
  • protocol (subtyping)
  • public name
  • PyCon
  • Python
  • Python Enhancement Proposal (PEP)
  • Pythonic
  • python.org
  • Python Package Index (PyPI)
  • Python Software Foundation (PSF)
  • Python Steering Council
  • queue
  • raw string
  • recursion
  • reference count
  • REPL
  • scope
  • self (argument)
  • sequence
  • shallow copy
  • slice
  • slicing
  • snake case
  • soft keyword
  • source code
  • stack
  • standard library
  • statement
  • static method
  • static type checker
  • string representation
  • subclass
  • text encoding
  • text file
  • traceback
  • triple-quoted string
  • type
  • type alias
  • type hint
  • Unicode
  • universal newlines
  • variable
  • variable annotation
  • virtual environment
  • virtual machine (VM)
  • wheel
  • Zen of Python

Python Keywords/

  • and
  • as
  • assert
  • async
  • await
  • break
  • case
  • class
  • continue
  • def
  • del
  • elif
  • else
  • except
  • False
  • finally
  • for
  • from
  • global
  • if
  • import
  • in
  • is
  • lambda
  • match
  • None
  • nonlocal
  • not
  • or
  • pass
  • raise
  • return
  • True
  • try
  • type
  • underscore (_)
  • while
  • with
  • yield

Python’s Built-in Data Types/

  • bytearray
  • bytes
  • complex
  • dict
  • float
  • frozenset
  • int
  • list
  • object
  • range
  • set
  • str
  • tuple

Python’s Built-in Exceptions/

  • ArithmeticError
  • AssertionError
  • AttributeError
  • BaseException
  • BaseExceptionGroup
  • BlockingIOError
  • BrokenPipeError
  • BufferError
  • ChildProcessError
  • ConnectionAbortedError
  • ConnectionError
  • ConnectionRefusedError
  • ConnectionResetError
  • EOFError
  • Exception
  • FileExistsError
  • FileNotFoundError
  • FloatingPointError
  • GeneratorExit
  • ImportError
  • IndentationError
  • IndexError
  • InterruptedError
  • IOError
  • IsADirectoryError
  • KeyboardInterrupt
  • KeyError
  • LookupError
  • MemoryError
  • ModuleNotFoundError
  • NameError
  • NotADirectoryError
  • NotImplementedError
  • OSError
  • OverflowError
  • PermissionError
  • RecursionError
  • RuntimeError
  • StopAsyncIteration
  • StopIteration
  • SyntaxError
  • SystemExit
  • TabError
  • TimeoutError
  • TypeError
  • ValueError
  • ZeroDivisionError

Python’s Built-in Functions/

  • abs()
  • aiter()
  • all()
  • anext()
  • any()
  • ascii()
  • bin()
  • bool()
  • breakpoint()
  • callable()
  • chr()
  • classmethod()
  • compile()
  • delattr()
  • dir()
  • divmod()
  • enumerate()
  • eval()
  • exec()
  • filter()
  • format()
  • getattr()
  • globals()
  • hasattr()
  • hash()
  • help()
  • hex()
  • id()
  • __import__()
  • input()
  • isinstance()
  • issubclass()
  • iter()
  • len()
  • locals()
  • map()
  • max()
  • memoryview()
  • min()
  • next()
  • oct()
  • open()
  • ord()
  • pow()
  • print()
  • property()
  • repr()
  • reversed()
  • round()
  • setattr()
  • slice()
  • sorted()
  • staticmethod()
  • sum()
  • super()
  • type()
  • vars()
  • zip()

Python Standard Library/

  • abc
  • argparse
  • array
  • asyncio
  • calendar
  • collections
  • configparser
  • contextlib
  • contextvars
  • copy
  • csv
  • dataclasses
  • datetime
  • decimal
  • doctest
  • email
  • enum
  • fractions
  • functools
  • gc
  • gettext
  • glob
  • hashlib
  • heapq
  • html
  • http
  • imaplib
  • importlib
  • inspect
  • io
  • ipaddress
  • itertools
  • json
  • keyword
  • locale
  • logging
  • math
  • mimetypes
  • mmap
  • multiprocessing
  • numbers
  • operator
  • os
  • pathlib
  • pickle
  • platform
  • pprint
  • queue
  • random
  • re
  • secrets
  • shutil
  • socket
  • sqlite3
  • string
  • subprocess
  • sys
  • sysconfig
  • tarfile
  • tempfile
  • threading
  • time
  • timeit
  • tkinter
  • tomllib
  • traceback
  • turtle
  • typing
  • unittest
  • urllib
  • uuid
  • venv
  • wave
  • weakref
  • webbrowser
  • xml
  • zipapp
  • zipfile

Python Tools/

  • Anaconda
  • Bandit
  • Black
  • bpython
  • build
  • Conda
  • Cookiecutter
  • Coverage.py
  • doit
  • flake8
  • flit
  • Git
  • Hatch
  • Invoke
  • IPython
  • isort
  • line_profiler
  • MkDocs
  • mypy
  • Nox
  • pdm
  • Pipenv
  • pip-tools
  • pipx
  • Poetry
  • poetry-core
  • pre-commit
  • ptpython
  • pyenv
  • PyInstaller
  • Pylint
  • py-spy
  • pytest
  • Ruff
  • setuptools
  • Sphinx
  • tox
  • twine
  • ty
  • uv
  • wheel

Code Editors & IDEs/

  • Emacs
  • JupyterLab
  • Jupyter Notebook
  • Neovim
  • Notepad++
  • Positron
  • PyCharm
  • Spyder
  • Sublime Text
  • Thonny
  • Vim
  • Visual Studio Code
  • Wing IDE

AI Coding Glossary/

  • activation function
  • agent
  • agentic coding
  • artificial intelligence (AI)
  • attention mechanism
  • autoregressive generation
  • bias
  • chain of thought (CoT)
  • context engineering
  • context window
  • convolutional network
  • embedding
  • evaluation
  • few-shot learning
  • fine-tuning
  • function calling
  • generative model
  • generative pre-trained transformer (GPT)
  • gradient descent
  • guardrails
  • hallucination
  • in-context learning
  • inference
  • jailbreak
  • large language model (LLM)
  • large reasoning model (LRM)
  • latency
  • LLM observability
  • loss function
  • machine learning
  • Model Context Protocol (MCP)
  • natural language processing (NLP)
  • nearest neighbor
  • neural network
  • parameter
  • prompt
  • prompt engineering
  • prompt injection
  • reasoning model
  • recurrent neural network (RNN)
  • reinforcement learning
  • retrieval-augmented generation (RAG)
  • self-attention
  • structured output
  • system prompt
  • tagging
  • telemetry
  • temperature
  • tensor parameter