Hello world I'm talking about Boolean expression. particularly ones that use and and or This video presents a few problems to solve. To get the most out of the video. Pause to solve the problem and write down the answer. You must write your answer down to check the syntax. After writing down your answer resume the video and check your answer. If you just watch the video without pausing and writing down the solution. You will get very little from this video. In each of these problems there is a mouse in a maze with doors that are labeled with letters. Each door has a value of true or false. A value of true means that the door is open. False means it is closed. The goal is to write the Boolean expression That will tell when the mouse can escape. Pausethe video and write down your answer now. Here there is just one door. And the entire Boolean expression is just a. We do not need to say if a == true, Because a already has a value of true or false. Here there are two doors: a and b. Write down the Boolean expression. for when the mouse can escape. Press pause now. The mouse can escape when either door a or door b is true, that is open. We write that as a pipe pipe b [a||b]. The pipe, or bar, | Is typed by holding down shift. and pressing the backslash key. Make sure you have written two of them Here there are two doors again, also a and b. Write down the Boolean expression for when the mouse can escape Press the pause button now. The mouse can only escape when both doors are open, or true. We write that as a ampersand ampersand b: a&&b The symbol for and is two ampersands: && Here we have three doors. Write down the solution. and press pause. There are two ways out of this maze. If both door a and b are open the mouse can go out this way: a&&b The mouse can also go out if door c is open. We have a. Ampersand b, inside parentheses, the or: || and the c: (a&&b)||c Make sure you've got 2 ampersands, make sure you have two ors: ||, and make sure you have the parentheses. Pause your video now. Here, door a must be open, and then either b or c is open, so we have written a Ampersand Ampersand: && and inside parentheses, choice of b or c. Press the pause button now. To get from where the mouse is now to this inner hallway, We need either a or b to be open: a||b And: && We also have to have either c or d open also: (c||d) You could have also written this. (a&&c)|| (a&&d) ||(b&&c) ||(b&&d) but I think this is a little more succinct. Pause your video. To get out the mouse has to have door a open, door a MUST be open. And then he goes through door b and then he can go through either C or D. And I have written that as a && b && (c || d) Pause your video and write the solution. We have written, a or b or c: a||b||c Pause your video and write the solution. If we look at this we can see the mouse could either go out this way. through both door a and b: a&&b Or the mouse could go out this way going through door c and then. Going through either d or e, so you can see we have this path here is written (a&&b). The other path we have with an or, and the other path would be c and Either. d or e. I'm missing a closing parenthesis over her. You always have to count those. (a&&b) || (c&&(d||e)) Sorry about. And that's it.