def hoge_r(s): s[1] = "1" a = ["a","b","c"]b = ahoge_r(a)print aprint b a = "abc"hoge_r(a)print a
Standard input is empty
['a', '1', 'c'] ['a', '1', 'c']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!