Calculate NIMPLY of the input values >>> nimply_gate(0, 0) 0 >>> nimply_gate(0, 1) 0 >>> nimply_gate(1, 0) 1 >>> nimply_gate(1, 1) 0
(input_1: int, input_2: int)
| 18 | |
| 19 | |
| 20 | def nimply_gate(input_1: int, input_2: int) -> int: |
| 21 | """ |
| 22 | Calculate NIMPLY of the input values |
| 23 | |
| 24 | >>> nimply_gate(0, 0) |
| 25 | 0 |
| 26 | >>> nimply_gate(0, 1) |
| 27 | 0 |
| 28 | >>> nimply_gate(1, 0) |
| 29 | 1 |
| 30 | >>> nimply_gate(1, 1) |
| 31 | 0 |
| 32 | """ |
| 33 | return int(input_1 == 1 and input_2 == 0) |
| 34 | |
| 35 | |
| 36 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected