If you want to check multiple conditions and execute a block when the first true condition is encountered, you use the ______ keyword after the initial if statement.

  • elif
  • elseif
  • or else
  • or if
To check multiple conditions and execute a block when the first true condition is encountered, you use the 'elif' keyword. 'elif' is short for 'else if' and allows you to chain multiple conditions together, with the block associated with the first true condition being executed.
Add your answer
Loading...

Leave a comment

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