I ran into a basic Python error.I want to know why is this error showing up.Can anyone please help me with this?
Code:
for i in range(0,len(l)):
del l[i]
print(l)
Output:
Traceback (most recent call last):
File "Hello.py", line 6, in
del l[i]
IndexError: list assignment index out of range