l=['a','b']ll=[]for i in l: ll.append(i) ll.append(i)print ll
Standard input is empty
['a', 'a', 'b', 'b']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!