class myClass: def foo(s): print('WORKED', s) return s s = foo(1) print("Hello")myClass.foo(2) print(myClass.s)
Standard input is empty
WORKED 1 Hello WORKED 2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!