Back to tasks
Swap
BeginnerPython for kids 路 Lesson 12: Changing a variable
Problem Statement
Set a = 1 and b = 2. Swap their values using a helper variable and print a and b on one line.
Output Format
Exactly the text from the example.
Examples
Example 1
Output
2 1