Javascript Modify Array While Iterating In Python What Does The Operator