def hui(arg, lst=[]): lst.append(arg) print(lst)hui(1)hui(2)
Standard input is empty
[1] [1, 2]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!