You have an electric circuit with 2 switches, a voltage source, and a bulb. How would you design a circuit that will change the bulb mode no matter what switch you press?
Implement bulb_mode to model the behavior. Given the initial mode and a sequence of switch presses, return the bulb mode after every press. Each press is represented by 0 or 1, and either switch must toggle the bulb exactly once.
Function signature: bulb_mode(initial_mode, presses). Return a list of integer modes, where each mode is 0 or 1.
def bulb_mode(initial_mode, presses):