Does the star operator(*) work in the way i have listed below? If so, what am i doing incorrectly?
I'm reading a book about python and it says I can use this syntax
a, b, rest* = [1, 2, 3, 4]
the above doesn't compile though, it says syntax error.
however, the book says that end up like this:
a = 1
b = 2
rest = [3,4]
I'm using python 3.4.1