r/pythonhelp • • Aug 27 '20

Why 2 identical arrays initialized differently give me 2 different results?

Post image
10 Upvotes

6 comments sorted by

View all comments

1

u/NamasteWager Aug 27 '20

I am not near a compiler and I am probably completely wrong on this, but could you try changing m in the second for loop to x? I know in other languages it falls out of scope but I can't remember how it works in python