Try as I might, I can't get that to raise an exception.
That said, agreed that this is weird. Python makes some really unintuitive choices regarding scope.
That said, agreed that this is weird. Python makes some really unintuitive choices regarding scope.
if input() == "dynamic scope?":
defined = "happyhappy"
print(defined)