Skip to content

Commit

Permalink
TR updates, first round
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozo committed Aug 15, 2024
1 parent c7904d4 commit fee3115
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions python-lists-tuples/unpacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
temp = a
a = b
b = temp
(a, b)
print(a, b)

a = "foo"
b = "bar"
# Using unpacking
a, b = b, a
a, b
print(a, b)

0 comments on commit fee3115

Please sign in to comment.