Javascript List Vs Array Python Practice