How do you specify an alternative condition to be checked in Python if the previous condition was false?

  • elif
  • else if
  • elseif
  • elseifcondition
To specify an alternative condition in Python when the previous condition is false, you use the 'elif' keyword. It allows you to check another condition if the preceding 'if' condition is false.
Add your answer
Loading...

Leave a comment

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