Using python Solve the below Problem:
- Define and test a function to generate the binary sequence forthe input message. For example, if the input is “abc”, then thebinary sequence is 01100001 01100010 01100011 (97 98 99).
- Define and test a function to generate the even parity bit forthe input message. For example, if the input is “bc”, then theparity bit will be 1 according to the message’s binary form01100010 01100011.
- Define and test a function to generate the covariance matrixfor an input vector. For example, if the input is v=[1, 2, 5], thenthe matrix is v*vT =
1 2 5
2 4 10
5 10
OR
OR