Slide 1Python Programming, 2/e1 Python Programming: An Introduction to Computer Science Chapter 7 Decision Structures Slide 2 Python Programming, 2/e2 Objectives To understand…