Python allows for multiple assignments in a single statement Posted on March 3, 2023April 20, 2023 by DARE Author | No Comments Python allows for multiple assignments in a single statement swapping in Python is faster and requires only one line of code: >>> a,b=7,8 >>> a,b=b,a >>> print (a,b) OUTPUT:4 7 Posted in PYTHON.