elif sounds stupid | Sololearn: Learn to code for FREE!


elif sounds stupid

why elif? why not else if or elsif?

2/18/2017 8:37:14 PM

Hamid Ariannejad

4 Answers

New Answer


It's easier to type elif than else if :-)


I don't actually know. Maybe they did not want to split a keyword into two separate words?


Why not? It's shorter, and as far as readeable as two keywords version ^^ It's just a little frustrating to cannot have the choice between the two syntaxes, but we get used to it very quickly ;)


"else if" alredy exist in javascript, they used "elif" so that you won´t get confused with other languages