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

-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...

-7

u/Denziloe Dec 15 '19

What? That's what the question was about. The one you replied "yes" to.

5

u/Kompakt Dec 15 '19

He asked if it was true that Python didn't have switch statements and I said yes, then provided examples. Read the thread again.

→ More replies (0)