Quiz: How to Use Git: A Beginner’s Guide

Interactive Quiz ⋅ 14 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Use Git: A Beginner’s Guide. By working through this quiz, you’ll revisit the core Git workflow: initializing a repository, staging changes, making commits, and inspecting your project’s history. Version control is an essential skill for any developer. Git lets you track every change you make, so you can always see what changed, roll back mistakes, and collaborate safely. The quiz contains 14 […]

Read more

Quiz: Python Stacks, Queues, and Priority Queues in Practice

Interactive Quiz ⋅ 11 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Python stacks, queues, and priority queues. You’ll review LIFO and FIFO behavior, enqueue and dequeue operations, and how deques work. You’ll implement a queue with collections.deque and learn how priority queues order elements. You’ll also see how queues support breadth-first traversal, stacks enable depth-first traversal, and how message queues help decouple services in real-world systems. The quiz contains 11 questions and there is no […]

Read more

Quiz: How to Use the OpenRouter API to Access Multiple AI Models via Python

Interactive Quiz ⋅ 6 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of How to Use the OpenRouter API to Access Multiple AI Models via Python. By completing this quiz, you’ll review how OpenRouter provides a unified routing layer, how to call multiple providers from a single Python script, how to switch models without changing your code, and how to compare outputs. It also reinforces practical skills for making API requests in Python, handling authentication, and processing […]

Read more

Quiz: Automate Python Data Analysis With YData Profiling

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Automate Python Data Analysis With YData Profiling. By working through this quiz, you’ll revisit how to generate and display profile reports in a notebook, export reports to files, add column descriptions, and speed up profiling. This quiz focuses on practical YData Profiling tasks such as rendering reports, comparing datasets, and preparing time series data. If you want a deeper walkthrough, review the tutorial linked […]

Read more

How to Use the OpenRouter API to Access Multiple AI Models via Python

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 guide, you’ll access models from several providers through one unified API, as shown in the image below: OpenRouter Unified API Running Multiple AI Models This convenience matters because the AI ecosystem is highly fragmented: each provider exposes its own    

Read more

Quiz: Duck Typing in Python: Writing Flexible and Decoupled Code

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of Duck Typing in Python: Writing Flexible and Decoupled Code. By working through this quiz, you’ll revisit what duck typing is and its pros and cons, how Python uses behavior-based interfaces, how protocols and special methods support it, and what alternatives you can use in Python. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. […]

Read more

What Does Python’s __init__.py Do?

Python’s special __init__.py file marks a directory as a regular Python package and allows you to import its modules. This file runs automatically the first time you import its containing package. You can use it to initialize package-level variables, define functions or classes, and structure the package’s namespace clearly for users. By the end of this video course, you’ll understand that: A directory without an __init__.py file becomes a namespace package, which behaves differently from a regular package and may […]

Read more

Quiz: The pandas DataFrame: Make Working With Data Delightful

Interactive Quiz ⋅ 11 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of the pandas DataFrame. By working through this quiz, you’ll review how to create pandas DataFrames, access and modify columns, insert and sort data, extract values as NumPy arrays, and how pandas handles missing data. The quiz contains 11 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. […]

Read more

Automate Python Data Analysis With YData Profiling

The YData Profiling package generates an exploratory data analysis (EDA) report with a few lines of code. The report provides dataset and column-level analysis, including plots and summary statistics to help you quickly understand your dataset. These reports can be exported to HTML or JSON so you can share them with other stakeholders. By the end of this tutorial, you’ll understand that: YData Profiling generates interactive reports containing EDA results, including summary statistics, visualizations, correlation matrices, and data quality warnings […]

Read more

Unit testing your code’s performance, part 2: Catching speed changes

In a previous post I talked about unit testing for speed, and in particular testing for big-O scalability. The next step is catching cases where you’ve changed not the scalability, but the direct efficiency of your code. If your first thought is “how this is different from running benchmarks?”, well, good point! An excellent starting point for performance is implementing a benchmark that runs automatically in CI, on every single pull request. If you haven’t got that, you probably want […]

Read more
1 2 3 994