Python Articles, Tutorials & News

Python sentinel objects, type hints, and PEP 661

PEP 661 proposes adding a utility for defining sentinel values in the Python standard library. In this article, you’ll get a PEP 661 summary, learn what sentinel objects are (with real-world examples), how to use them with type hints, and a bit about why …

Read more »

Python’s Filter(): Extract Values from Iterables

In this step-by-step tutorial, you’ll learn how Python’s filter() works and how to use it effectively in your programs. You’ll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.

Read more »

Kats: One stop shop for time series analysis in Python

Kats is a toolkit to analyze time series data, a lightweight, easy-to-use, and generalizable framework to perform time series analysis. Time series analysis is an essential component of Data Science and Engineering work at industry, from understanding the…

Read more »

Programming Puzzles – Python Dataset

We introduce a new type of programming challenge called programming puzzles, as an objective and comprehensive evaluation of program synthesis, and release an open-source dataset of Python Programming Puzzles (P3). Each puzzle is defined by a short Python…

Read more »