Aug-13-2020, 03:37 PM
How is that it is looping even without decrement operator? possibly a stupid question, but it is a question for me.
l = [10, 20, 30, 40] while len(l) != 0: print(l.pop)
Output:40
30
20
10