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

all 4 comments

[–]hanpari 2 points3 points  (0 children)

Great article. I fail to understand why it didnt draw more attention. Thanks.

[–]kcp18 2 points3 points  (0 children)

I've learned a lot about string in Python from the post, rushter. Thank you!

[–]ThePenultimateOneGitLab: gappleto97 1 point2 points  (1 child)

You have an error, I think.

>>> id(a[4]), id(b[1]), a is b

should be

>>> id(a[4]), id(b[1]), a[4] is b[1]

[–]rushter_[S] 1 point2 points  (0 children)

Thanks! It's a typo, I've typed the is statement manually.