testlist = ['1111',
'2222',
'3333',
'4444',
'5555']
while testlist:
for items in testlist:
print ('Take item',items)
print ('Removed',testlist.pop(0))
time.sleep(15)
Take element 1111
Remove 1111
Take element 3333
Remove 2222
Take element 5555
Remove 3333
Take the item 4444
Remove 4444
Take element 5555
Remove 5555
for
here.while(testlist):
x = testlist.pop(0)
print('Take an element', x)
print('Remove', x)
Find more questions by tags Python