#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Python · Glossary

Python Programming Glossary 50 Terms You Must Know in 2026

Fifty Python terms, grouped the way you meet them — basics, functions and objects, tools, then advanced ideas — each with a plain meaning and, where it helps, a tiny example.

Tracks
Glossary Explorer · Live Interactive
Term
—
Word you will see
Meaning
—
Plain explanation
Example
—
Where it appears
Basics → Functions → Tools → Advanced
Click a group to see one term explained simply. The full list of 50 is below.

Home / Tutorials / Career Guides / Python Programming Glossary — 50 Terms You Must Know in 2026

Python · Glossary

Python Programming Glossary — 50 Terms You Must Know in 2026

GROUP 1 GROUP 2 GROUP 3 GROUP 4 Basics 14 terms on data and flow Core Functions/OOP 14 terms on code structure Reuse Tools 14 terms on packages, envs Workflow Advanced 8 terms to grow into Next
The 50 terms in this Python programming glossary are grouped into basics, functions and objects, tools, and advanced ideas.

Quick summary — Python programming glossary

This Python programming glossary explains 50 essential terms in plain English, grouped into basics, functions and object-oriented programming, tools, and advanced ideas. Learn the basics group first, because terms like mutable, iterable and exception appear in every tutorial, then move on to decorators, virtual environments and type hints.

In this guide you will learn:

  1. Basics — 14 terms on data types, control flow and errors.
  2. Functions and OOP — 14 terms on structure and reuse.
  3. Tools — 14 terms on packages, environments and testing.
  4. Advanced — 8 terms to grow into next.
  5. Study tips — how to make the terms stick.

SECTION 01Basics: data, flow and errors (14 terms)

These are the words you meet in your first weeks of Python. They describe how values are stored, how code makes decisions and loops, and what happens when something goes wrong. Understanding the difference between mutable and immutable objects, and between iterables and iterators, prevents many beginner bugs.

Term Plain meaning Tiny example Why it matters
Variable A name that refers to a value price = 99 Every program uses them
Mutable An object that can be changed in place list, dict, set Changes are visible through every name pointing to it
Immutable An object that cannot be changed after creation int, str, tuple Safe as dict keys
Exception An error raised while the program runs ValueError, KeyError Handled with try/except
5.  Data type   Kind of value: int, float, str, bool, list...
6.  String      Text in quotes: "hello"
7.  List        Ordered, changeable collection: [1, 2, 3]
8.  Tuple       Ordered, unchangeable collection: (1, 2)
9.  Dictionary  Key-value pairs: {"name": "Asha"}
10. Set         Unordered unique items: {1, 2, 3}
11. Iterable    Anything you can loop over (list, str, dict)
12. Indentation Spaces that define code blocks in Python
13. None        Python's "no value" object
14. f-string    Formatted string: f"Total: {price}"
python-basics.py
Key insight: A classic bug: def add(item, items=[]) shares one list across all calls because the default list is created once. Use items=None and create the list inside.

SECTION 02Functions and object-oriented terms (14 terms)

Once you can write simple scripts, you start organising code into functions and classes. These terms describe how functions receive inputs, return results, and how classes bundle data with behaviour. You will meet them in every framework, from Flask and Django to pandas.

Term Plain meaning Tiny example Why it matters
Function A reusable block of code with a name def area(r): ... Avoids repetition
Argument A value passed into a function call area(5) Makes functions flexible
Class A blueprint for creating objects class Student: ... Groups data and behaviour
Decorator A function that wraps another to add behaviour @app.get("/") Used widely in frameworks
19. Parameter    Name in the def line that receives a value
20. Return value Result a function sends back with return
21. *args        Collects extra positional arguments as a tuple
22. **kwargs     Collects extra keyword arguments as a dict
23. Lambda       Small anonymous function: lambda x: x * 2
24. Scope        Where a name can be used (local, global)
25. Object       An instance created from a class
26. Method       A function defined inside a class
27. self         Refers to the current object inside methods
28. Inheritance  A class reusing and extending another class
python-functions.py
Key insight: Decorators look magical, but @timer above simply means greet = timer(greet). Reading it that way makes framework code much easier to follow.

SECTION 03Tools and workflow terms (14 terms)

Writing code is only part of programming in Python. You also install packages, isolate projects, run tests and share code. These terms appear in setup instructions, job descriptions and README files, so knowing them saves hours of confusion when you clone someone else's project.

Term Plain meaning Tiny example Why it matters
pip Python's package installer pip install requests Installs libraries
Virtual environment An isolated folder of packages per project python -m venv .venv Avoids version clashes
Module A single .py file you can import import utils Organises code
Package A folder of modules, or an installable library pandas, requests Reuses others' work
33. requirements.txt  File listing a project's packages
34. PyPI              Python Package Index, where pip finds packages
35. Interpreter       The program that runs Python code
36. REPL              Interactive prompt: type code, see result
37. Script            A .py file you run directly
38. __name__          "__main__" when a file is run directly
39. Linter            Tool that flags style and simple errors
40. Formatter         Tool that rewrites code style (e.g. black)
41. Unit test         Small test for one function
42. Debugger          Tool to pause code and inspect values (pdb)
python-tools.sh
Key insight: The if __name__ == "__main__": line lets a file work both as an importable module and as a script you can run directly.

SECTION 04Advanced terms to grow into (8 terms)

You do not need these on day one, but you will meet them as projects grow. Learn them once the basics feel natural.

43. List comprehension
    Build a list in one line:
    squares = [n * n for n in range(10) if n % 2 == 0]

44. Generator
    A function that yields values one at a time,
    saving memory:
    def count_up(n):
        for i in range(n):
            yield i

45. Context manager
    Sets up and cleans up automatically with "with":
    with open("data.txt") as f:
        text = f.read()
python-advanced-terms.py

SECTION 05Tips to make Python terms stick

Reading a glossary once is not enough. These habits help:

  • Learn five terms a day — ten days covers this whole list.
  • Type every example — muscle memory helps vocabulary stick.
  • Explain terms out loud — if you can explain "mutable" to a friend, you know it.
  • Spot terms in real code — open a library's source and find decorators or generators.
  • Use terms in your README files — precise language makes your projects look professional.
Pro tip: Make flashcards with the term on one side and a two-line code example on the other. Code examples are easier to remember than definitions.

SECTION 06Interview Q&A — Python terms

Q1What is the difference between a list and a tuple?

Both are ordered collections. A list is mutable, so items can be added or changed; a tuple is immutable once created, which makes it suitable for fixed data and as a dictionary key when its items are hashable.

Q2What is a decorator in Python?

A decorator is a function that takes another function and returns a new function with added behaviour. The @decorator syntax is shorthand for reassigning the function to the decorated version.

Q3Why use a virtual environment?

It isolates each project's packages, so different projects can use different library versions without conflicts, and requirements can be reproduced on another machine.

Q4What is a generator and why is it useful?

A generator produces values lazily with yield, one at a time, so it can handle large or infinite sequences without storing everything in memory.

Q5What does if __name__ == "__main__" do?

It runs the code inside only when the file is executed directly, not when it is imported as a module by another file.

SECTION 07Test yourself — Python terms quiz

Five questions. No sign-up.

0 / 5

Pick an answer to see why it is right or wrong.

SECTION 08Frequently asked questions

What are the basic terms in Python programming?

Start with variable, data type, string, list, tuple, dictionary, set, loop, condition, function, argument, return value, exception and module. They appear in nearly every beginner tutorial.

What is the difference between a module and a package in Python?

A module is a single .py file. A package is a collection of modules, usually a folder; the word is also used for installable libraries from PyPI.

What is PEP 8?

PEP 8 is Python's official style guide. It covers naming, indentation, line length and other conventions that make code consistent and readable.

Do I need to learn all Python terms before coding?

No. Learn terms as you meet them in practice. The basics group here is enough to start writing useful programs.

What Python terms come up most in interviews?

Mutable and immutable types, list versus tuple, decorators, generators, *args and **kwargs, exceptions, virtual environments and, for experienced roles, the GIL.

Classroom & online · Noida

Turn Python vocabulary into real skill

Our Python Training Course takes you from Python basics through functions, OOP, packages and testing with projects that use every term in this glossary.

Talk to a counsellor for current fees
  • Python basics to OOP
  • Tools, testing and debugging
  • Real-world projects
  • Weekday & weekend batches