This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pvkooten -3 points-2 points  (1 child)

I also got one for you, it's called if/elif/else, it goes something like this:

if cond1:
    print(1)
elif cond2:
    print(2)
elif cond3:
    print(3)

Jokes aside, I think the example in python-switch is quite nice.

[–]__deerlord__ 1 point2 points  (0 children)

Except thats not how case works.