typ_fun=8 if typ_fun==1: def func(): print('Функция 1') else: def func(): print('Функция 2') func()