In: Computer Science
Python Programming 4th Edition: Write Boolean expression:
1)A currently have a different value than B
2) B less than the sum of the current values of A and C
3)C is no more than 15.
4) 75 is between the values of integers A and B
5) Number N is divisible by 2 or it is divisible by 3.
6) X is positive and Y is positive
Solution:
1) print(A!=B)
Print True if A and B have different values else print False
2) print(B<(A+C))
Print True if B value less than sum of A and C else print False
3)print(C<=15)
Print True if C no more than 15 else print False
4)print(A<75 and B>75)
Print True if 75 in between A and B values else print False
5)print(N%2==0 or N%3==0)
Print True if N divisible by 2 or 3 else print False
6)print(X>0 and Y>0)
Print True if X and Y are positive else print False
For Example:
Thank you, Have a great day:-)