Guest User

Untitled

a guest
Apr 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. l = []
  2. tup = ('a', 'b')
  3. l = l + tup
  4.  
  5. Traceback (most recent call last):
  6. File "<stdin>", line 1, in <module>
  7. TypeError: can only concatenate list (not "tuple") to list
  8.  
  9. l = []
  10. tup = ('a','b')
  11. l += tup
Add Comment
Please, Sign In to add comment