Working with Python Sets

A set is a collection of distinct objects in mathematics. Python lets you create sets and perform basic operations on them. Before we get into how to work with sets, here’s a quick review of some key terms / phrases. Read more

Similar

Subclassing in Python: Redux

The conflict between subclassing and composition is as old as object-oriented programming. The latest crop of languages like Go or Rust prove that you don’t need subclassing to successfully write code. But what’s a pragmatic approach to subclassing in Pyt... (more…)

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... (more…)

Read more »