def try_bump(n): n += 100 return n x = 1 print(try_bump(x)) # x is untouched: ints are immutable print(x)
the callee cannot change the caller's int