Objective
Create a Python program that reads two texts and swaps them using variables, without writing them directly in the output.
Instructions
- Read the first value into
aand the second intob. - Swap the contents of
aandb(in Python you can do it in a single line). - Show
afirst and thenb, each on its own line.
1
2
2
1
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise