Skip to content

Commit

Permalink
Adds tests with lists on the left hand side
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkunz committed Apr 5, 2015
1 parent cf09cc9 commit 4ccfb3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proj3/tests/assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
print(x, y, z)
x = y = a, *b, c, d = list(range(10))
print(x, y, a, b, c, d)

[a, b, c] = range(5, 5+3)
print(a, b, c)
[a, b, *c, d, e, f] = range(1, 40)
print(a, b, c, d)

0 comments on commit 4ccfb3a

Please sign in to comment.