Thank you, I knew about the scoping, but not that you could use global
in the loop!
But still this somehow feels broken, I cannot simply copy code out of a function in the REPL to debug it (In the lack of a proper debugger)
3 Likes