A = ['abc', 'xyz', 'rgb'] for name in A: exec('%s = []' % name) abc.append('foobar')print(abc)
Standard input is empty
['foobar']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!