Maybe I was unclear, but the reason that this is so mind blowing to me is that else if isn’t a keyword. There is only elseand if. Python had to introduce a third keyword because else if isn’t valid syntax. In other words, else if comes for free in C-like languages due to the language grammar, and I had just assumed it was a special token.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe I was unclear, but the reason that this is so mind blowing to me is that
else if
isn’t a keyword. There is onlyelse
andif
. Python had to introduce a third keyword becauseelse if
isn’t valid syntax. In other words,else if
comes for free in C-like languages due to the language grammar, and I had just assumed it was a special token.