using python - finish the code below for NAND and NOR
#!/usr/bin/python3
import numpy as np
inputs = np.array([[0,0],[0,1],[1,0],[1,1]])
def NAND(x):
# Implement NAND Logic HERE
def NOR(x):
# Implement NOR Logic HERE
print( 'NAND:')
outputs = [ NAND(x) for x in inputs ]
print( outputs )
print( 'NOR:')
outputs = [ NOR(x) for x in inputs ]
print( outputs )
using python - finish the code below for NAND and NOR #!/usr/bin/python3 import numpy as np inputs = np.array([[0,0],[0,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am