4 ms·
Everything is passed by reference in Python. But there are no methods to modify values of immutable objects like strings or numbers. (Variable assignment, as i
by zurn 9y ago
Everything is passed by reference in Python. But there are no methods to modify values of immutable objects like strings or numbers.
(Variable assignment, as in foo = bar, always just assigns a reference, it doesn't mutate objects or copy values.)