>>> dict = { 'first' : 'monday', 'second' : 'tuesday' } >>> [ "%s=%s" % (key, value) for key, value in dict.items() ] ['second=tuesday', 'first=monday'] >>> list = [ 1, 2, 3 ] >>> [ 2*i for i in list ] [2, 4, 6] >>>