if answer == '1':
func1()
elif answer == '2' or answer == '3':
func2()
elif answer == '4' and another_answer == '5':
func3()
func4()
def fun_one():
print('do something')
choice_dict = {
'1': fun_one
}
answer = '1'
if answer in choice_dict:
test = choice_dict[answer]
test()