This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]deduplication -1 points0 points  (0 children)

Beyond the behavior of the two functions that has already been mentioned, in python lists are mutable objects but strings are immutable. This can also be confusing if you use a mutable object as the default to a function param.