QUESTION
2. Given a binary code with minimum distance k, where k is apositive integer, write a program that will detect errors incodewords in as many as k 1 positions and correct errors in asmany as
(k 1)/2 positions. WRITE A PYTHON PROGRAM
EXPERT ASNWER