---
title: "Comment by Masoud Salehi on \"Proxy cool array methods\" | Hashnode"
description: "Cooooool! But in the last code snippet: You&#39;re printing array keys. Must use for of instead of for in . And the python version doesn&#39;t include stop in t"
url: "https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb/comment/626faf4777f8e2f7fe9348a7"
---

[Discussion](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb)

Comment [Proxy cool array methods](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb)

[Masoud Salehi](https://hashnode.com/@masoudmsk)

[May 2, 2022](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb/comment/626faf4777f8e2f7fe9348a7)

Cooooool!

But in the last code snippet:

-   You're printing array keys. Must use `for of` instead of `for in`.
-   And the python version doesn't include `stop` in the output of `range(stop)`. 😜

[Amir Hossein Ebrahimi](https://hashnode.com/@amirhe)

[May 2, 2022](https://hashnode.com/posts/proxy-cool-array-methods/626e5e05d02237eb3fc7c0cb/comment/626faf4777f8e2f7fe9348a7#reply-626fbd3677f8e2f7fe934a9a)

Thank you so much, [Masoud Salehi](https://hashnode.com/@masoudmsk)

-   Because the output of the first one was so similar, I simply missed the differences.
-   I also corrected the output once you pointed out the python exclusion :)
