Typescript Remove Item From Array While Iterating In Python What Is The Result