Colgate-Palmolive interview question

Swap two numbers without using a temporary variable

Interview Answer

Anonymous

1 Feb 2019

I know the tricks using addition and subtraction in other languages, but very straightforward in python: a, b = b, a That's all.