https://np.reddit.com/r/Python/comments/pnie05/enable_x_and_x_expressions_in_python/hctx14h/

You're all over complicating this. This can be solved through recursion rather simply

def increment(x, n):
    if n == 1:
       return x+1
    elif n<= 0:
        raise ValueError
    return increment(x+1, n-1)

x = increment(x, 1)

0 comments · 100% upvoted · other discussions

comments

No public comments to show.