[Community Puzzle] Logic gates

The index im checking is outs[i,3] this should get the name of the second input in the corresponding loop.
I tried replacing it with outs[0,3] to force a valid response but, i still get the IndexOutOfRange error

You talked about what index you’re checking, that’s part (b) in my comment. How about part (a)? Are you sure [0,3] is a valid index?

Yes… since I created the array with the size [m,4].
So the index should read [0,3] even if empty

It is valid for an numpy array, not for a list.
https://numpy.org/doc/1.21/reference/arrays.indexing.html

Okay, found the problem… my code always asks for 2 inputs… the second testcase only have 1 input, so it causes the error

After finding the issue, I fixed and I even optimized the code a bit… and now I got my 100%

Cool puzzle!

In my first and last tests, the program suddenly stops and stops working. In the first test when calculating the output signal ā€œEā€. The last test has several outputs at once. I don’t understand what the reason is?!

nice one after some hours I finally solved it, pretty cool challenge.

no, because NXOR is also true when a AND b are false

Nice one.
A bit easy, but its on the easy section, so, what were you expecting?
Enjoyed it :slight_smile: