Python and other languages examples based on Think Complexity by Allen B. Downey