I'm trying to save an class object into dictionary
I've something like this
class Thing:
def __init__(self, symbol, age, pos):
worldMap = {}
self.symbol = symbol
self.age = age
self.pos = pos
t1 = Thing('c', 2, '')
t2 = ..
t1.worldMap
When I try to add t1 to the worldMap it doesn't work. What am I missing here?