While reviewing codes submitted by participants of Correspondence Seminar of Informatics I’ve stumbled upon the following situation in Python. Care to guess what it prints?

x = 42

def test():
    x = 28
    global x
    print(x)

Not really what I would expect, but makes sense.