So I have a problem like this:
array_of_things = [[is_shiny=False, is_bumpy=True]
[is_shiny=False, is_bumpy=False]
[is_shiny=True, is_bumpy=True]]
To access an item, I would do this:
if array_of_things[1][1] == True: #If the second item in list is bumpy
print("The second item is bumpy")
However, to make my code more clear, I want each item in an array to be accessed like this:
if array_of_things[1].is_bumpy == True: #If the second item in the list is bumpy
print("The second item is bumpy")
How can I do that? Any help would be appreciated.