> > >x = 2 > > >def wrong(num): > > > x = x+1 > > > print x > > No, this should be > > def incx(): > global x > x = x+1 > > x = 2 > incx() > print x > # prints 3 Yup, I see where I went wrong now, but that *was* exactly what I was aiming to do, at least... hehe