def fun_int_stat(int_to_analyze, dig_in, dig_out):
def chek_input(dig_out, dig_in):
if dig_in in range(0, 10) and dig_out in range(0,10):
normal = True
else:
normal = False
return normal
int_to_analyze_list = list(str(int_to_analyze))
int_to_analyze_list = list(map(int, int_to_analyze_list))
run = chek_input(dig_out, dig_in)
if run:
if dig_in in int_to_analyze_list and dig_out not in int_to_analyze_list:
return True
else:
return False
else:
print('input error')
Код копировать не советую, сайт ломает табуляции