C
Clodoaldo Pinto
I know how to format strings using a dictionary:
Is it possible to reference an item in the list d['list']?:
File "<stdin>", line 1, in ?
KeyError: 'list[0]'
Regards, Clodoaldo Pinto
'[0, 1]'d = {'list':[0, 1]}
'%(list)s' % d
Is it possible to reference an item in the list d['list']?:
Traceback (most recent call last):'%(list[0])s' % d
File "<stdin>", line 1, in ?
KeyError: 'list[0]'
Regards, Clodoaldo Pinto