def red(spisok,a): if a in spisok : return True else : return False a=[1,2,3,4,5,6,7,8,9] c=int(input('Введите число:') ) print(red(a,c))