NEED HELP this need to have python code
. DUI . Dubmit your solutions to the D2L assignment fold You can do a word doc, pdf, jpg, etc. 1. (5 points) Example: (From the textbook) Implication Implication requires q to be True whenever p is True. The python code below defines an implication function and prints out the truth table. 1det Python 3.0 plication . 9): return (not o) ora) true from True False false Fats True True 6 print(" p a ") for p in True Falsel: for ein True Falsel: implication( print( 4.a) ) Problem: Politication "Both sides must disagree!" Politication is the logic practiced by politicians. As such, Politication requires q and p to b different values. In other words, if one side is True, the other must be False. Write the code necessary to define a politication function and print out its truth table. (Hint You only need to change the return line of the example code.) Home Tools Tum Preise F le Implication requires q to be True whenever p is True. The python code below defines an implication function and prints out the truth tabl Python 3.6 1 det implication (p. 9): 2 return (not p) or q) True True True True False False 5 print('p q a ") for p in [True False for ain [True Falsel: 2 - implication ( 9) print( a) Problem: Politication "Both sides must disagree!" Politication is the logic practiced by politicians. As such, Politication requires q and different values. In other words, if one side is True, the other must be False. Write the code necessary to define a politication function and print out its truth table. You only need to change the return line of the example code.) Use pythontutor.com to check that your code does what it should. Submit a screenshot the one above) of your code. 2. (8 points) Determine whether the following two statements are logically equivalent. Problem: Politication "Both sides must disagree!" Politication is the logic practiced by politicians. As such, Politication requires q and p to be different values. In other words, if one side is True, the other must be False. Write the code necessary to define a politication function and print out its truth table. (Hint: You only need to change the return line of the example code.) Use pythontutor.com to check that your code does what it should. Submit a screenshot (like the one above) of your code. 2. (8 points) Determine whether the following two statements are logically equivalent. ( 9) T P = ( ar ) 3. (6 points) Let A(C) bex