Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = ['a', 'b', 'c']
- s += 'd'
- # s = ['a', 'b', 'c', 'd']
- s -= 'a'
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- TypeError: unsupported operand type(s) for -=: 'list' and 'str'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement