Topic 4a - Basic Decisions

This section will cover how to use basic if statements to solve simple problems involving numeric comparisons.

Topic 4a - Basic If Statements

What do to?

1 - Follow along with the lesson, or complete the tutorial yourself.

There are links to is optional additional reading that you may do for additional information.

2 - Create a new program and use it check for the scenarios listed in the tutorial.

  • You may start with the Part 4 - Exercises.py file in the Files section below.

  • You will need to read in three integers and compare them in various ways.

What to Submit?

Please submit the Practice Exercise programs from the end of the tutorial. We will be taking them up in class, but I may wish to look at them to help you out if you are struggling.

Topic 4a - Making Decisions Part 1.pdf

Files