re: The `else if` Keyword Doesn’t Exist in Java VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Maybe this counts as mind blowing as well. The elif if python does not work any differently than the else if in Java. The only valid reason for hav...
 

I was just wondering to myself why python would have a separate elif keyword. But of course it makes sense because of whitespace having meaning in python.
Thanks!

 

Quote from python documentation to back me up on this:

The keyword ‘elif’ is short for ‘else if’, and is useful to avoid excessive indentation.

code of conduct - report abuse