Deleting Wrong Data

This is my solution for “Deleting Wrong Data”,

Instead of :

del android[10472] # don't run this more than once

I wrote:

android_len = len(android_header)
for row in android:
    if len(row) != android_len:
        print(row)
        print(android.index(row))
        del(android[android.index(row)])
1 Like