It's very simple to swap the values of two variables using a single line of code in Python.
Here is an example:
>>> a=12>>> b=15>>> a,b=b,a>>> a15>>> b12>>>