If i have a list for example :
num=[1,2,3,4] and i want to delete
list every 2 second, so after 2 second list in num is
num = [2,3,4] and 2 second after it will be
num =[2,3] how can i do that?
You could do it using
del to remove the first element:
for i in range(len(num)): time.sleep(2) del num