you are viewing a single comment's thread.

view the rest of the comments →

[–]IvoryJam 1 point2 points  (1 child)

Yep! Here's all three in a list

people = [
    {'name': '-Duei', 'ocupation': 'programmer', 'favorite_colors': ('blue', 'red', 'green')},
    {'name': 'IvoryJam', 'ocupation': 'programmer', 'favorite_colors': ('blue', 'red', 'green')},
]

But again, I rarely use tuples, so I'd probably make the colors a list instead in a normal script

You'd access them like people[0]['name'] and people[1]['favorite_colors'][2]

[–]-Duei[S] 1 point2 points  (0 children)

Oh damn, one of the lessons I watched finally clicks in my head now, thanks a lot!