Skip to content

# If Else Try Except

## Introduction

In computer programming, selection structures run sections of code based on logical conditions. In this chapter you will learn about the selections structures if, else, and else if. The end of the chapter introduces another selection structure, the try / except block.

By the end of this chapter you will be able to:

• Utilize Python's input() function

• Use if, else if, and else selection structures

• Explain the difference between syntax errors and exception errors

• Use try-except statements

• Construct flowcharts to describe the flow of a Python program