Robotics & Artificial Intelligence

How many conditions can be checked using the if-elif-elif-else statement?

  1. One
  2. Two
  3. Three
  4. Four

Python Control Flow

1 Like

Answer

Three

Reason — The if-elif-elif-else statement consists of one if condition and two elif conditions, allowing three conditions to be checked. The else part does not check any condition, it executes when all the conditions are false. Therefore, the correct answer is Three.

Answered By

1 Like


Related Questions