Hello I am new in tables and I want learn it, my first problem

So I learnt this:

but that was not enough for my first table problem I want to solve:

This is what I have been created:

local x = {
	1,
	2,
	3
}

for i = 1, 10 do
	i = #x + 1
end

So my idea was for each key it will give + 1 like the output should be

2, 3, 4

but it didnt work :frowning:

You need to use print() to show the numbers

I believe you would be better off trying this.

local x = {1,2,3}

for i = 1, #x do
print(x[i] + 1)
end

If u have any questions feel free to ask.

ohhhhhhhhhhhhhhhhhhhhhhhhh yes I have forgot that

Thank you.

Honestly how can I improve my tables skills as fast as I can?

Solving problems?

Yes. Trying new things and exploring helps you greatly.

Just try different and innovative stuff.

1 Like

Oh yes thanks. I think I have a idea too and maybe it will work, anyways thanks for your help :smiley: