Title: Swapping variable values
Slug: swapping_variable_values
Summary: Swapping variable values
Date: 2016-05-01 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [1]:
one = 1
two = 2
In [2]:
'one =', one, 'two =', two
Out[2]:
In [3]:
one, two = two, one
In [4]:
'one =', one, 'two =', two
Out[4]: