Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = []
- tup = ('a', 'b')
- l = l + tup
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- TypeError: can only concatenate list (not "tuple") to list
- l = []
- tup = ('a','b')
- l += tup
Add Comment
Please, Sign In to add comment