Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. s = ['a', 'b', 'c']
  2. s += 'd'
  3. # s = ['a', 'b', 'c', 'd']
  4.  
  5. s -= 'a'
  6. Traceback (most recent call last):
  7. File "<stdin>", line 1, in <module>
  8. TypeError: unsupported operand type(s) for -=: 'list' and 'str'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement