Introduction
Note
See the Text and images tab for more details!
So far, you've seen programs that run from top to bottom in a straight line. But real applications need to respond differently depending on the situation—checking whether a user entered valid input, determining who won a game, or showing different messages based on a value.
In this module, you learn how to give your programs the ability to make decisions. You work with Boolean values and comparison operators to evaluate conditions, use if, elif, and else to run different code based on those conditions, and combine multiple conditions with logical operators. You put all of this together to build a rock, paper, scissors game.