def value(x): x = 1def ref(x): x[0] = 1x = 0value(x)print(x)x = [0]ref(x)print(x[0]) #https://pt.stackoverflow.com/q/255451/101
Standard input is empty
0 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!