0
Difference between else and elif .(python) [solved]
2 Respuestas
+ 5
Elif and else are used during if else statements. But elif is used to add another condition.
On the other hand, else includes every condition not specified with an if or elif statement.
Example:
if(age<10) ...
elif(age>10&&age<20) ...
else ...
So else includes every age bigger than 20
+ 1
Check python3 control structures:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2277/
https://www.sololearn.com/learn/Python/2278/