if - elif - else Statement In Python
Rushikesh J.
QA Automation Engineer @Vinz Global | Robot Framework | Manual Testing, Automation Testing | Python | Selenium | GIT | JIRA | Immediate Joiner | API Testing Using Postman | Jenkins
?elif is used between if and else block
?We used elif, where we have to make multiple condition after if statement
?It is alternative of else if (condition)
Syntax:
if (boolean expression/ condition):
? statement or set of statements
elif (boolean expression/ condition):
? statement or set of statements
elif (boolean expression/ condition):
? statement or set of statements
else:
? statement or set of statements