Create a CRC-16 algorithm in python that accepts four bytes of data (8 nibbles, 32 bits, etc) and outputs a new two byte (4 nibbles, 16 bits, etc) word of data with the message bits and a flag with the CRC decoder result. Once completed create python test functions (that use the assert keyword) to verify that the algorithm works.
Create a CRC-16 algorithm in python that accepts four bytes of data (8 nibbles, 32 bits, etc) and outputs a new two byte (4 nibbles, 16 bits, etc) word of data with the message bits and a flag with the CRC decoder result. Once completed create python test functions (that use the assert keyword) to verify that the algorithm works.