4 ms·
That has nothing to do with the semantics of passing parameters to functions. def swap(a,b): a,b = b,a does not work.
by swolchok 17y ago
That has nothing to do with the semantics of passing parameters to functions.
def swap(a,b):
a,b = b,a
does not work.