React Js Array Get Last Element In Array Python Initialize 2d