Typescript Update Item In Array Python Practice