p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Unpacking
Swap values between two variables
Swap values between two variables
Use unpacking to swap the values of the variables
one
and
two
.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output