def solution(sensor_state, switches):
for switch in switches:
sensor_state ^= switch
return sensor_state
sensor_state = 9
switches = [3, 6]
print(solution(sensor_state, switches))
To embed this project on your website, copy the following code and paste it into your website's HTML: