Calculate NOT of the input values >>> not_gate(0) 1 >>> not_gate(1) 0
(input_1: int)
| 13 | |
| 14 | |
| 15 | def not_gate(input_1: int) -> int: |
| 16 | """ |
| 17 | Calculate NOT of the input values |
| 18 | >>> not_gate(0) |
| 19 | 1 |
| 20 | >>> not_gate(1) |
| 21 | 0 |
| 22 | """ |
| 23 | |
| 24 | return 1 if input_1 == 0 else 0 |
| 25 | |
| 26 | |
| 27 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected