I just started Python programming, and I’m wondering about the elif keyword.
Other programming languages I’ve used before use else if. Does anyone have an idea why the Python developers added the additional elif keyword?
Why not:
if a:
print("a")
else if b:
print("b")
else:
print("c")
Most likely it’s syntactic sugar. Like the
Wendof Visual Basic.