---
title: "Comment by Netsu on \"Day 14... Two weeks already?\" | Hashnode"
description: "for i,z in ipairs(zombies) do You are basically saying for each index and each zombie in the zombies table, run the following code... Index is the place in the"
url: "https://hashnode.com/posts/day-14-two-weeks-already/64ee712f27363d55abaf89a2/comment/65009f731310dfd331e25b28"
---

[Discussion](https://hashnode.com/posts/day-14-two-weeks-already/64ee712f27363d55abaf89a2)

Comment [Day 14... Two weeks already?](https://hashnode.com/posts/day-14-two-weeks-already/64ee712f27363d55abaf89a2)

[Netsu](https://hashnode.com/@Netsu)

[Sep 12, 2023](https://hashnode.com/posts/day-14-two-weeks-already/64ee712f27363d55abaf89a2/comment/65009f731310dfd331e25b28)

`for i,z in ipairs(zombies) do`

You are basically saying for each _index_ and each _zombie_ in the zombies table, run the following code...

Index is the place in the array, zombies\[index\] will return the value in that table, as an example:

`x = {"I", "am", "cool"}`

If we do `x[2]` we will get `am` from the table, since `am` is at `index` (place/position) 2 in the table

the `z` represents the value itself, take the above example, if we do `for index, word in ipairs(x) do print(index, word) end`, we'll get the following output:

`1    I` `2    am` `3    cool`

In that order

If you have trouble understanding some topics, getting a tutor might help you a bunch, might make the learning process more fun and encourage more learning

[I Mac](https://hashnode.com/@odemac)

[Sep 14, 2023](https://hashnode.com/posts/day-14-two-weeks-already/64ee712f27363d55abaf89a2/comment/65009f731310dfd331e25b28#reply-650305546c527edfe7061098)

I am thinking of getting a tutor at some point when finances allow it, and try and find a mentor at some point as well :(
