Function Python Tutorial

def weird():
    tmp = (lambda: spam * 2)        
    spam = 42                       
    return tmp
act = weird()
print act()