I apologise for asking, but i started Learning Python and i need to do a disctionary/list -thing like we do in LUA. But i cant seem to find out how to do it.
What i want it something similiar to this.
I've searched on Youtube and Learning websites, but i cant seem to find any.
Anyone knows on how I can do it in Python 3.x?
What i want it something similiar to this.
Code:
import random
input = random.randint(1, 2)
list = {
[1] = {first = 1, second = 2, third = 3, forth = 4}
[2] = {first = 10, second = 20, third = 30, forth = 40}
}
theList = list[input]
I've searched on Youtube and Learning websites, but i cant seem to find any.
Anyone knows on how I can do it in Python 3.x?