This Python script mimics Babbage's Difference Engine

Corresponding tweet for this thread: