Anybody any thoughts on how to write this while loop as a for loop ?
while len(stuff) != 10:
next_one = more_stuff.pop()
print("Adding: ", next_one)
print(“There’s %d items now.” % len(stuff))
stuff is a list
I can test length of list with an if statement and len(stuff)
and populate until we have 10 elements.
Anybody else have any thoughts ?