Get rid of that awkward tmp. — In this post, I’ll be showing 3 ways to swap two values without needing a third variable. Even though these approaches may (well, might) be applied in any language, I’ll be showing their implementation in Python. Swapped assignment This is probably the most widely known approach, which consists of assigning to each…