← All practice pages
Python
Python Variables & Types
Variables are named boxes that hold values while your program runs. In Python you never declare a type — you assign a value and Python works out what it is.
Try it now
Write a function called "swap_variables" that takes two arguments and returns them in reversed order without using a temporary variable.
Create a free account to run your answer and get ARIA's review.