How do you set, clear, and toggle a specific bit in a 32-bit register? Write the corresponding C macros.
Implement bit_operation(register_value, bit, operation) for grading, returning the resulting unsigned 32-bit value. operation is one of set, clear, or toggle; bit positions range from 0 through 31. Use bit masks and preserve all other bits.
def bit_operation(register_value, bit, operation):