 Sam the bat is safe from leaving the left side of the screen or from leaving the right side of the screen Let's combine the safe left and safe right functions so that we can keep Sam safe from leaving the left and the right sides To do both we'll need to use compound booleans We already know boolean expressions can return true or false Well, we can combine multiple boolean expressions together to create compound booleans that will also return true or false There are two functions we can use to combine booleans and and or The and function takes in two booleans and only returns true if both of its booleans are true For example, if we asked is this shape red and Is this shape a circle? The answer would be true because both of the booleans are true If we ask the same questions for this circle The answer would be false because while one of the booleans is true The other is false The other way to combine booleans is with the or which also takes in two booleans But returns true if at least one of the inputs is true Let's look at this shape for an example Is it a square or green? Is it a star or a circle? Is it a star or green? The answer to each of these questions is true Use compound booleans to keep Sam safe from leaving the left and right sides of the screen