xxxxxxxxxx
not all arguments converted during string formatting
how can i solve this probleme on python
def saisir():
n=int(input("donner un entier naturel: "))
while not (n>0):
n=int(input("ereur !! donner un entier naturel: "))
return n
def polydivisible(n):
ch=str(n)
test=True
for i in range (2,len(ch)+1):
if not ch[:i]%i==0:
test=False
return test
n=saisir()
if polydivisible(n)==True:
print("c'est un nombre polydivisible")
else:
print("c'est un nombre non polydivisible")