What is an elif in python?



What is an elif in python?..

Answer / Sumit Kumar Verma

elif stands for else if in Python. It's used within conditional statements to check multiple conditions. If the first condition is not met, it checks the next elif conditions until one is met or exhausts all possibilities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Why python is the best?

1 Answers  


What is sys stdout flush ()?

1 Answers  


What is the difference between 'is' and '==' in python?

3 Answers  


How do I convert a string to a number?

1 Answers  


How will you use python to read a random line from a file?

1 Answers  


Is google written in python?

1 Answers  


How does break work in python?

1 Answers  


What is the best front end for python?

1 Answers  


How can you generate random numbers in python?

1 Answers  


How web scraping is done in python, explain in short?

1 Answers  


Explain about python break, continue and pass?

1 Answers  


What are the differences between del keyword and clear() function?

1 Answers  


Categories