Student Tasks/Solutions
Activity
Tasks
Task 3: Pizza or Burger
Task 4: Hello Bye
Task 4 Challenge: Hello Bye Challenge
Reflection
What is a Boolean flag? Describe a case in which you might you want to use one? A Boolean flag is another term for a Boolean variable whose values are True/False. Boolean flags are used to set the state of your program.
What is the difference between an AND operator and an OR operator?
- In what cases will they both evaluate to true? When both values are True.
- In what cases will they both evaluate to false? When both values are False.
- In what cases will they evaluate differently? When one value is True and the other False.