Python questions

Python questions
Question 1

Write the dual of the following Boolean equation. Do not put any spaces in your answer and use adjacency (rather than *) to mean multiplication.
a(a’+b)=ab

Question 2
1.
Write the dual of the following Boolean equation. Do not use spaces in your answer.
(a+1)(a+0)=a

Question 3

Complete the following Python code:

grades = {“Sam”: [85, 90, 95], “Sue”: [82, 96, 91], “Ted”: [30, 59, 43], “Pat”: [72, 75, 78]}
highest = 0
for Term 1 :
exams = grades[student]
average = 0
for Term 2 :
average += exam
average = average / Term 3
# Make sure that “highest” holds the highest average score.
if Term 4 :
Term 5
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET A GOOD DISCOUNT