def outer(x):
    def inner(x=x):
        return 'x={x}'.format_map(locals())
    return inner

print(outer(10)())

