def add_end(L=[]): L.append('END') return L print(add_end()) print(add_end())
Standard input is empty
['END'] ['END', 'END']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!