Zoom
  • Run through the code to see logical operators in action and pay attention to what each variable is assigned!
  • On line 5, both derek_color and josie_color are 'cream', so using 'and' will evaluate to True.
  • On line 7, derek_color is cream but wagner_color is NOT cream. However, it is using 'or' so it will evaluate to True.
  • On line 9, derek_color is cream and we are using 'not'. So, it will evaluate to False.