What is the correct sequence of blocks in a conditional statement that uses all three components: if, elif, and else?

  • if, elif, else
  • if, else, elif
  • else, if, elif
  • elif, if, else
In Python, the correct sequence in a conditional statement that uses all three components is if, followed by one or more elif blocks, and finally, an optional else block.
Add your answer
Loading...

Leave a comment

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