I am making a function called makeTrigger and it takes a in variables and updates a dictionary but the thing I have a problem with is that I am trying to access a obj in a dict and I am getting this with str():
<ps6.SubjectTrigger object at 0x101d36fd0> and <ps6.TitleTrigger object at 0x101dbc0d0>
What will make it print this:
SubjectTrigger('world') and TitleTrigger('Intel')
What should I use to print this correctly. Here is the dict I am trying to access:
{'t1': SubjectTrigger('world'), 't2': TitleTrigger('Intel'), 't3': PhraseTrigger('New York City')}
I am trying to acces t1 and t2.