Question: The question: My code: #4 #define function def logic_gate(a,b,c): #convert to boolean if a == 'FALSE': a = False if b == 'FALSE': b =

The question:

The question: My code: #4 #define function def logic_gate(a,b,c): #convert to boolean

My code:

#4 #define function def logic_gate(a,b,c): #convert to boolean if a == 'FALSE': a = False if b == 'FALSE': b = False if c == 'FALSE': c = False #check logic gates if c == False or a == False or b == False: return True else: return False #get user input user_a = input('Enter A input: ') user_b = input('Enter B input: ') user_c = input('Enter C input: ') #call function print(logic_gate(user_a,user_b,user_c))

Problem: My teacher said "do not use any equals signs or ifs"

Can I please get the question in python form. Thank you

4) Write a python program that will take the user's inputs for the values of a, b, and c and produce the correct output of this logic gate. EXAMPLE: If the user inputs A= TRUE B=FALSE and C= TRUE, the output would print TRUE

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!