How to Flatten a List of Lists in Python
Learn how to flatten a list of lists in Python using for loops, list comprehensions, itertools, functools, NumPy, and recursion.
Curated development tutorials from top sources. Filter by language.
Learn how to flatten a list of lists in Python using for loops, list comprehensions, itertools, functools, NumPy, and recursion.
Test your understanding of how to flatten a list of lists in Python using for loops, list comprehensions, itertools, recursion, and NumPy.
Test your understanding of how CPython allocates, tracks, and frees memory for your Python objects behind the scenes.
What if you could build charts in Python by describing what your data means, instead of scripting every visual detail? Christopher Trudeau is back on
Test your knowledge of Qt Designer for Python. Build PyQt GUIs visually with drag-and-drop, signals and slots, and .ui files.
Build a Python chatbot with the ChatterBot library. Clean real conversation data, train on custom datasets, and add local AI with Ollama.
Quiz yourself on OpenCode: install it, connect an AI provider, and use it to analyze and refactor Python from your terminal.
Test your understanding of working with web APIs in Python, from reading responses and handling status codes to authentication and rate limiting.
Learn how to use Codex CLI to add features to Python projects directly from your terminal, without needing a browser or IDE plugins.
Test your knowledge of Python project layouts for one-off scripts, installable packages, internal packages, and Django and Flask web applications.
A new Python Packaging Council, PEP 803 stabilizes the free-threaded ABI, the incremental GC gets reverted, and Astral changes hands.
Test your knowledge of SQLite and SQLAlchemy in Python, from flat files and SQL to ORM models and many-to-many relationships.
Test your understanding of Python fundamentals: variables, data types, operators, expressions, keywords, and exceptions in 15 questions.
How do you add agent skills to your data science workflow? How can a coding agent assist with data wrangling and research? This week on the show, Trev
Check your grasp of the Factory Method pattern in Python: when to use it, the roles involved, and how to implement a flexible object factory.
Test your understanding of a data analysis workflow in Python, from cleansing raw data with pandas to spotting insights with regression.
AI coding agents come in four types: IDE, terminal, PR, and cloud. Learn how each workflow fits into modern Python development.
Test your understanding of the ChatterBot Python library, from training a basic bot with ListTrainer to wiring in a local LLM through Ollama.
Test your understanding of the redesigned Python 3.13 REPL with color support, multiline editing, paste mode, and history browsing.
Learn how to use Python's unittest framework to write unit tests for your code, including test cases, fixtures, and test suites.