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

The Casino Chips Problem Solved with Python

The challenge You are given three piles of casino chips: white, green and black chips: the first pile contains only white chips the second pile contains only green chips the third pile contains only black chips Each day you take exactly two chips of diffe... (more…)

Read more »

Beyond R and Python: Rust for Science

Rust looks like an increasingly important part of the future of scientific programming. It's as fast as C++, as flexible as Python, and does packaging better than even R. It is also very difficult to learn, and demands a lot of cognitive investment. On ba... (more…)

Read more »