Iteration in Python [Please help] : Why would the code below produce an output of 5? 
And what does it mean for the condition while n? 
Shouldn't it produce an infinite loop since n will always be true?
  
  n = 10000
    count = 0

    while n:
        count = count + 1
        n = n / 10
        n = int(n)

    print (count)

Output: 5