Question d’entretien chez Colgate-Palmolive

Swap two numbers without using a temporary variable

Réponse à la question d'entretien

Utilisateur anonyme

1 févr. 2019

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