Which Python conditional statement allows for the checking of multiple conditions sequentially until one is found to be true?

  • if-elif
  • if-else if
  • switch-case
  • while
In Python, the 'if-elif' (short for "else if") statement allows for checking multiple conditions sequentially until one is found to be true. This is useful for handling multiple exclusive cases.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *