Swap variables

Sign in to test your solution.
# assign two integers to two variables a = 17 b = 23 # print values assigned to variables print(f'a = {a} en b = {b}') # swap two variables a += b # add two lines here to swap a and b # print values assigned to variables print(f'a = {a} en b = {b}')

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged