Typescript Last Element Of Array Python Initialize