Hamming Code and Two's Complement

I taught a class (for Digital Logic Design) on Hamming Code (with a little review of two’s complement). Here are the lecture notes, and here is a Python program that encodes and decodes Hamming Code bit-strings.