x = dict() x['a'] = 'string' x['b'] = list() x['b'].append('foo') x['b'].append('bar')
x = dict(a = 'string', b = list(('foo', 'bar')))