Question: def nandTable(): print('+{}+'.format('-' * 33)) print('|{:^33}|'.format('NAND truth table')) print('+{}+'.format('-' * 33)) a, b = 'F', 'F' print('| A = {}, B = {} | A

def nandTable(): print('+{}+'.format('-' * 33)) print('|{:^33}|'.format('NAND truth table')) print('+{}+'.format('-' * 33)) a, b = 'F', 'F' print('| A = {}, B = {} | A NAND B = {:<5} |'.format(a, b, str(not (a == 'T' and b == 'T')))) a, b = 'F', 'T' print('| A = {}, B = {} | A NAND B = {:<5} |'.format(a, b, str(not (a == 'T' and b == 'T')))) a, b = 'T', 'F' print('| A = {}, B = {} | A NAND B = {:<5} |'.format(a, b, str(not (a == 'T' and b == 'T')))) a, b = 'T', 'T' print('| A = {}, B = {} | A NAND B = {:<5} |'.format(a, b, str(not (a == 'T' and b == 'T')))) print('-' * 35) nandTable()

explain every single step and function of this code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!