python switch statement using dictionary

visit shbcf.ru