def f(n): return n * 2 + 1 f(f(f(3))) This function returns us the number 31 in the form of an answer, maybe it just can’t understand why 31, thanks in advance!
def f(n): return n * 2 + 1 f(f(f(3))) This function returns us the number 31 in the form of an answer, maybe it just can’t understand why 31, thanks in advance!
Source: https://ru.stackoverflow.com/questions/723417/
All Articles
((3 * 2 + 1) * 2 + 1) * 2 + 1 = 31- slippyk