Selection structures in Python include
except. These selection structures allow certain blocks of code to run or not run based on logical conditions. Logical conditions are expressions or variables that can be evaluated as
False. You learned that Python uses indentation segment code after
else statements. The standard indentation in Python is four spaces.
The difference between syntax errors and exception errors was demonstrated in this chapter.
except blocks only check for exception errors.
At the end of the chapter, you learned how to use flowcharts to describe the flow of a program with four basic shapes and arrows.
Key Terms and Concepts