kennyledet/Algorithm-Implementations — pull request #123 by AlexMathew (2014-01-03 08:17:50+00:00)
Title: Include a Python implementation for finding Hamming Code

Include Hamming_Code/Python/HammingCode.py
A Python implementation of a Hamming coded word generator.
Given a word consisting of 1's and 0's, the output is another word of 1's and 0's, with the bits of the Hamming Code inserted in the digit places from the right, which are a power of 2.

SAMPLE INPUT & OUTPUT --

Enter the word to be encoded : 1011
The Hamming encoded word for 1011 is : 1010101