Hoping someone can explain what's going on with this while loop.
x=deque([(1,2,3)])
while x:
    a,b,c = x.popleft()
    do stuff with values in x
    x.append((d,e,f))
I get that x is a deque with 3 items which are constantly being replaced by new values.  But I've never encountered a while loop without some kind of condition.  How will the loop know when to stop?
 
     
     
    