Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.
Sagot :
Answer:
1. True
2. True
3. False
4. False
5. True
6. False
7. True
8. True
9. True
10. False
Explanation:
Following are the complete python code to check the Boolean expressions values:
Program:
grade = 82 #defining the variable grade that inputs integer value
name = "Rumpelstiltskin"#defining the variable name that inputs string value
x = -3#defining the variable x that inputs negative integer value
print(grade == 82)#using the grade variable that checks its value equal to 82
print(grade >= 82 and grade + 10 < 100)#using the grade variable with and gate that checks its value greater than equal to 82 and adding 10 in grade is less than 100
print(grade/ 2 > 90 or grade == 75)#using the grade variable with or gate that checks its grade divide by 2 greater than 90 and grade is equal to 75
print(not(name != "Rumpelstiltskin"))#using not gate that check name not equal to string value
print(name == "Jim" or name == "Rumpelstiltskin")#using the name variable with or gate that checks its value Jim or Rumpelstiltskin
print(x + 3 > 0 or x != -3 or x - 1 < -5)#using the x variable with or gate that checks x and by 3 is greater than 0 or x not equal to -3 or x -1 less than -5
print((x < 0 and x != 3) and x + 5 == 2)#using the x variable with and gate that checks x less than 0 and x not equal to 3 and x+5 equal to 2
print(grade > 65 and (name == "Micheal" or name =="Rumpelstiltskin") and not(x == -3))#using the grade and name variable with or gate that checks grade greater than 65 and name equal to "Micheal" or "Rumpelstiltskin"
print(x > 0 or (grade + 5 < 90 and grade >= 80) or name == "Pam")#using the x and grade variable with or and and gate that checks x greater than 0 or grade + 5 less than 90 and greater than equal to 80
print((not(grade > x) and (name != "Dwight" and x <= 0)) or (grade > 0 and x % 2 == 1))#using the grade, name, x variable with or and and and not grade greater than x and name not equal to "Dwight" and x less than equal to 0 or grade greater than 0 and x modulo 2 equal to 1
Output:
Please find the attached file.
Learn more about the boolean expression here:
brainly.com/question/13265286
We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.