I have a list data type. For example, list_example=[1,2,3,4]
I want to delete all its contents using a for loop
The code I wrote is:
list_example=[1,2,3,4] for i in range(0,len(list_example)): del list_example[i] i-=1
But the problem is that the variable 'i' does not seem to be changed in this cycle ...