Python tutorials

Quiz: How to Use Ollama to Run Large Language Models Locally

Interactive Quiz ⋅ 6 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Use Ollama to Run Large Language Models Locally. By working through this quiz, you’ll revisit how to install Ollama, pull and manage models, chat with local LLMs from your terminal, and connect them to AI coding tools. Running models locally means your prompts stay private and no API keys or cloud services are needed. See how well you remember the key commands […]

Read more

Quiz: Splitting, Concatenating, and Joining Python Strings

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss Share How well do you know Python string manipulation? In this quiz, you’ll revisit concepts like string immutability, splitting and joining with different arguments, and building safe string operations for tasks like CSV handling. You’ll get hands-on practice with real examples from the Splitting, Concatenating, and Joining Strings in Python course. Ready to test your skills? The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each […]

Read more

Quiz: Your Python Coding Environment on Windows: Setup Guide

Interactive Quiz ⋅ 11 QuestionsBy Joseph Peart Share Test your understanding of Python Coding Setup on Windows. By working through this quiz, you’ll review the key steps for setting up a Python development environment on Windows. You’ll cover system updates, Windows Terminal, package managers, PowerShell profiles, environment variables, and safe use of remote scripts. You’ll also check practical details like configuring Path, managing Python versions, using version control, and streamlining your workflow. The quiz contains 11 questions and there is […]

Read more

Quiz: Working With Files in Python

Interactive Quiz ⋅ 12 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Working With Files in Python. By working through this quiz, you’ll revisit key techniques for handling files and directories in Python. You’ll practice safely opening files, iterating over directories, and filtering entries to select only files or subdirectories. You’ll also explore creating directories and managing files and directories, including deleting, copying, and renaming them. The quiz contains 12 questions and there is no time […]

Read more

Quiz: Create and Modify PDF Files in Python

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Creating and Modifying PDF Files in Python. By working through this quiz, you’ll practice reading, extracting, and modifying PDFs using the pypdf library. You’ll also review how to write new PDFs, concatenate and merge files, crop pages, and encrypt or decrypt documents. These skills help you automate PDF workflows and handle documents programmatically in Python. The quiz contains 10 questions and there is no […]

Read more

Quiz: Threading in Python

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of Threading in Python. By working through this quiz, you’ll revisit how to create and manage threads, use ThreadPoolExecutor, prevent race conditions with locks, and build producer-consumer pipelines with the queue module. You can also review the written tutorial An Intro to Threading in Python for additional details and code examples. The quiz contains 10 questions and there is no time limit. You’ll get 1 […]

Read more

Pydantic AI: Build Type-Safe LLM Agents in Python

Pydantic AI is a Python framework for building LLM agents that return validated, structured outputs using Pydantic models. Instead of parsing raw strings from LLMs, you get type-safe objects with automatic validation. If you’ve used FastAPI or Pydantic before, then you’ll recognize the familiar pattern of defining schemas with type hints and letting the framework handle the type validation for you. By the end of this tutorial, you’ll understand that: Pydantic AI uses BaseModel classes to define structured outputs that […]

Read more

Quiz: Python Descriptors: An Introduction

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python Descriptors. By working through this quiz, you’ll revisit the descriptor protocol, how .__get__() and .__set__() control attribute access, and how to implement read only descriptors. You’ll also explore data vs. non-data descriptors, attribute lookup order, and the .__set_name__() method. These exercises help you reason about real descriptor behavior and see when and why to use them in your code. The quiz contains 8 […]

Read more

Working With APIs in Python: Reading Public Data

Python is an excellent choice for working with Application Programming Interfaces (APIs), allowing you to efficiently consume and interact with them. By using the Requests library, you can easily fetch data from APIs that communicate using HTTP, such as REST, SOAP, or GraphQL APIs. This video course covers the essentials of consuming REST APIs with Python, including authentication and handling responses. By the end of this video course, you’ll understand that: An API is an interface that allows different systems […]

Read more

Quiz: Pydantic AI: Build Type-Safe LLM Agents in Python

Interactive Quiz ⋅ 7 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Pydantic AI: Build Type-Safe LLM Agents in Python. You’ll revisit what Pydantic AI is, how to specify a model provider, how to return structured outputs using Pydantic models, how to register and select tools, how dependency injection works, and what trade-offs to expect in production. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. […]

Read more
1 2 3 212