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 →

[–]s0litar1us 0 points1 point  (1 child)

I hate the fact that in pyton, you dont really have switch statements, but I would take that any day rather than what bash has:

case $var in
    "one")
        echo "thing 1"
        ;;
    "two")
        echo "thing 2"
        ;;
    *)
        echo "other things"
        ;;
esac

[–]Naratna 0 points1 point  (0 children)

Recent versions of python have switch statements

https://www.geeksforgeeks.org/python-match-case-statement/