Python Check Array Size Javascript Map Set For Learning