I don't know if this has been asked before but here I go.
A while loop takes a bool, something like while a<5 or while True and proceeds to do something.
n = 10000
count = 0
while n:
count = count + 1
n = n / 10
n=int(n)
print (count)
This code will execute the while loop, but why, I understand that I could use 1 instead of True, but here it's going like "while 10000", and 10000 != True, so how does that work?