r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

Show parent comments

17

u/a-slice-of-toast Aug 01 '22

swaps a b to b a

9

u/DerKnerd Aug 01 '22 edited Aug 01 '22

Yes. And now this:

c = b
b = a
a = c

2

u/[deleted] Aug 01 '22

makes c into old b

makes b into old a

makes a into old b

1

u/DerKnerd Aug 01 '22

Exactly.

1

u/eimattz Aug 01 '22

c = b
b = a
a = a