a = int(input('Enter first number.')) b = int(input('Enter second number.')) spisok = [] deviders = [] def diapazon(): for i in range(a, b+1): spisok.append(i) print (spisok) def devider(): d = 1 for i in spisok: while d <= i: if i % d == 0: deviders.append(d) d=+1 print(deviders) devider()