Rotate three variables so that a gets b's value, b gets c's and c gets a's, in one statement, three times.
a, b, c = "red", "green", "blue"
for _ in range(3):
a, b, c = b, c, a
print(a, b, c)
green blue red blue red green red green blue
The right-hand side tuple is built from the old values first, so no temporary variables are needed. After three rotations the values are back where they started.