def say_boo_twice(): global boo boo = \'Boo!\' print boo, boo boo = \'boo boo\' say_boo_twice()
The output is
Boo! Bo
Essentially you reassign boo when you call the function.
Check how this works with the globals() and locals() functions.