In the case of 'switch' it is if ... elif ... else ... . It does the job.
Actually, in cases where you might want to use a
SWITCHin Python you can use OO and use dictionary dispatching where each condition is mapped to a function or method because
if…elif…elseis foolproof but can be a pain to maintain.