Python tutorials

Quiz: Accessing Multiple AI Models With the OpenRouter API

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Accessing Multiple AI Models With the OpenRouter API. By working through this quiz, you’ll revisit how OpenRouter provides a unified routing layer, how to call AI models from a single Python script, how to switch between intelligent routing and a specific model, how to prioritize providers, and how to add model fallbacks for reliability. It also reinforces how to weigh trade-offs like cost, latency, […]

Read more

Quiz: Embeddings and Vector Databases With ChromaDB

Interactive Quiz ⋅ 10 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Embeddings and Vector Databases With ChromaDB. By working through this quiz, you’ll revisit key concepts like vectors, cosine similarity, word and text embeddings, ChromaDB collections, metadata filtering, and retrieval-augmented generation (RAG). The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score […]

Read more

Accessing Multiple AI Models With the OpenRouter API

One of the quickest ways to call multiple AI models from a single Python script is to use OpenRouter’s API, which acts as a unified routing layer between your code and multiple AI providers. By the end of this course, you’ll be able to access models from several providers through one unified API. This convenience matters because the AI ecosystem is highly fragmented: each provider exposes its own API, authentication scheme, rate limits, and model lineup. Working with multiple providers […]

Read more

Python 3.15 Hits Feature Freeze and Other News for June 2026

While the Northern Hemisphere warms up for summer, Python 3.15 went the other way with its beta 1 feature freeze 🥶. Since May 7, the list of what will be included in the next release is final. That list includes a brand-new sentinel built-in that finally standardizes a pattern Python developers have been hand-rolling for decades. And while AI kept writing code, buggy or not, developers also directed it to look for bugs in code that had been sitting untouched […]

Read more

Quiz: How to Read User Input From the Keyboard in Python

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Read User Input From the Keyboard in Python. By working through this quiz, you’ll revisit the input() function, type conversion, error handling with try and except, the getpass module for hidden input, and the PyInputPlus library for automatic validation. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more

Quiz: How to Use GitHub Copilot Code Review in Pull Requests

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Use GitHub Copilot Code Review in Pull Requests. By working through this quiz, you’ll revisit how to request a review from Copilot on your pull requests, apply or push back on its suggestions, configure automatic reviews, and use custom instructions to make Copilot’s feedback follow your team’s conventions. The quiz contains 9 questions and there is no time limit. You’ll get 1 […]

Read more

How to Use GitHub Copilot Code Review in Pull Requests

GitHub offers several AI tools under the Copilot umbrella that cover your entire development workflow. Copilot can provide an AI-powered code review shortly after you open a pull request on GitHub. Rather than waiting for a teammate, you can add Copilot as a reviewer to receive context-aware feedback. With access to your entire codebase, it delivers actionable suggestions that you can apply in just a few clicks: Pull requests are the standard collaborative workflow provided by GitHub and similar services […]

Read more

Quiz: Structuring Your Python Script

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of the video course Structuring Your Python Script. By working through this quiz, you’ll revisit how to make a Python script executable with a shebang, organize your imports per PEP 8, automatically sort imports with ruff, and define a clear entry point using if __name__ == “__main__”. These habits help you transition from quick experiments in the REPL to writing Python scripts that are easy […]

Read more

Quiz: Python’s Format Mini-Language for Tidy Strings

Interactive Quiz ⋅ 12 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python’s Format Mini-Language for Tidy Strings. By working through this quiz, you’ll revisit how format specifiers work inside f-strings and str.format(), including alignment and width fields, decimal precision, type representations, thousand separators, sign handling, dynamic specifiers, and percentage formatting. The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, […]

Read more
1 2 3 226