DD
Size: a a a
DD
DD
АС
def count(num):
print("count for {}:".format(num))
while True:
i = int(num)
if num == i:
break
num *= 10
num = int(num)
length = 1
while True:
num /= 10
if num == 0:
break
length += 1
print(" length = {}".format(length))
count(10)
count(100)
count(1001)
count(100.1)
count(100.01)
count(1001.001)
count(100.1001)
count(1001.1001)
👑️
def count(num):
print("count for {}:".format(num))
while True:
i = int(num)
if num == i:
break
num *= 10
num = int(num)
length = 1
while True:
num /= 10
if num == 0:
break
length += 1
print(" length = {}".format(length))
count(10)
count(100)
count(1001)
count(100.1)
count(100.01)
count(1001.001)
count(100.1001)
count(1001.1001)
👑️
I
К
I
К
EM
К
К
К
bA
bA
bA
DD
DD
DD
DD