Palanikumar wrote:
> File "func.py", line 8
> tuple_vec = {1, 0, 1)
> ^
> SyntaxError: invalid syntax
The opening and the closing parenthesis have to match.
To get a tuple:
tuple_vec = (1, 0, 1)
To get a set (with two values in undefined order, so not a good match for
your use case):
set_val = {1, 0, 1}
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
