Advertisements
Advertisements
Question
Elif can be considered to be the abbreviation of ______.
Options
nested if
if..else
else if
if..elif
Advertisements
Solution
Elif can be considered to be the abbreviation of else if.
Explanation:
The elif statement in Python is a shorthand for "else if" and is used to check multiple conditions in a sequence.
APPEARS IN
RELATED QUESTIONS
How many important control structures are there in Python?
Which statement is generally used as a placeholder?
Which is the most comfortable loop?
What is the output of the following snippet?
i=1
while True:
if i%3 ==0:
break
print(i,end='')
i +=1
What is the output of the following snippet?
T=1
while T:
print(True)
break
Which amongst this is not a jump statement?
List the control structures in Python.
Write is the syntax of if..else statement?
Define control structure.
Write a detailed note on if..else..elif statement with suitable example.
