Javascript Limit Array Size Python Tutorial