Python Basics: Chapter 08 – Conditional Logic Quiz

Interactive Quiz ⋅ 11 Questions
By David Amos

In this chapter, you will learn the mechanics of writing programs that do different things based on different conditions. The use of conditions in programming is called conditional logic. Paired with functions and loop, conditional logic allows you to write complex programs that handle many different situations.

At the end of this chapter, you will know how to:

  • Compare the values of two or more variables
  • Write if statements to control the flow of your programs
  • Handle errors using the try...except pattern
  • Apply condition logic to create simple simulations

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

« Browse All Python Quizzes