Create refactor_if_else.py

built-in function map()