Python has no switch statement. Period.
To achieve switch-like statement, one direct way is to use
if - elif - else block.
However, there are other alternatives than just plain, and possibly a bit more verbose
if - elif - else way. You can use python dictionary to do that, here is an example:
Personally I think it is more elegant and succinct code than plain if-else. See this stackoverflow thread.