Question: Here is what's in the python file: Create a function in Python called 'conjunction' that takes two integers as input, performs a bitwise conjunction &,

Here is what's in the python file:

Create a function in Python called 'conjunction' that takes two integers as input, performs a bitwise conjunction \&, and returns the result as an integer. When two statements are combined using the connector AND, the result is a conjunction. If both the combining statements are true, then this statement will be true; otherwise, it is false. Example - Input : 5, 3 Output : 1 Input :8, 13 Output : 8 Hint - You can check the output by manually converting the integers to decimals and performing the conjunction operation, then turning the resulting decimal to an integer. Please download this python file- hw1.py. Write your code under the conjunction0 function only. Please DO NOT change the names of file, Class, or Function. You may, however, rename the parameters (except the self parameter) but NOT reorder them. \#DO NOT CHANGE THE NAMES OF THE FILE, CLASS or METHOD class Logic: def conjunction(self, x,y ): \# Start your code from here \# For testing your code uncomment below lines. #l=Logic() \# print(l.conjunction (5,3) ) \# Comment or delete the above test code before submitting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
