riddle 9 (python)

python riddle

def fn():
        x = "Who's on first"
        def f(y): 
              return x+y
        x = "What's on second"
        return f("?")

print fn()

(ok, so this is more of a mnemonic to help me remember how python works)

[More programming riddles]

1 thought on “riddle 9 (python)

Leave a reply to ferretfarmer Cancel reply