def f(): global x x += 1 x, y = 1, 1f()print(x, y)
Standard input is empty
2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!