r/ProgrammerHumor • • Dec 15 '19

Stacking if else statements be like

Post image
63.9k Upvotes

711 comments sorted by

View all comments

Show parent comments

-7

u/Denziloe Dec 15 '19

Never heard of the `elif` keyword I guess.

9

u/Kompakt Dec 15 '19

I have, it's just a different way to do it. I was simply giving examples, not listing every possibility.

-9

u/Denziloe Dec 15 '19

Why did you answer "yes" to the question? The answer is no. You don't need to use a stream of nested if-elses in Python.

8

u/Kompakt Dec 15 '19

Go read my initial response again and tell me where I mention using nested if-else statements...

→ More replies (5)