When I loop through my json file, it doesn't show the last one
for i in range(len(data)):
print(i)
if data[i]["id"] == user.id and data[i]["infractionType"] == "Warning":
print("removed")
data.remove(data[i])
This is what it prints
ready
0
removed
1
removed
2