Values & References6 / 18
Up next

Immutable arguments are safe

def try_bump(n):
    n += 100
    return n


x = 1
print(try_bump(x))
# x is untouched: ints are immutable
print(x)
What you're solving

the callee cannot change the caller's int