from collections import Counter
def hasMultipleDigit(a):
c = Counter(str(a))
if any(value > 1 for value in c.values()):
return False
else:
return True
def Divide2(a):
b = str(a)
TheNumtoDiv1 = str(b[0:1])
if int(TheNumtoDiv1)%2 == 0:
return True
def Divide3(a):
b = str(a)
TheNumtoDiv = str(b[0:2])
if int(TheNumtoDiv)%3==0:
return True
def Divide4(a):
b = str(a)
thenum = str(b[0:3])
if int(thenum)%4==0:
return True
def Divide6(a):
b = str(a)
thenum = str(b[0:5])
if int(thenum)%6==0:
return True
def Divide7(a):
b = str(a)
thenum = str(b[0:6])
if int(thenum)%7==0:
return True
n = 1234567890
lista = [int(x) for x in str(n)]
while n < 9876543210:
if lista[4] == 5:
if lista[9] == 0:
if hasMultipleDigit(n) == False:
if Divide2(n) == True:
if Divide3(n)==True:
if Divide4(n) == True:
if Divide6(n) == True:
if Divide7(n) == True:
print(n)
n += 1
Please help me to make this code running easier!