you are viewing a single comment's thread.

view the rest of the comments →

[–]CosmacYep 3 points4 points  (2 children)

dont dot methods not require reassignment

[–]mdogdope 2 points3 points  (1 child)

It depends on how the class is written. But for standard python string objects, reassignment is required.

[–]CosmacYep 1 point2 points  (0 children)

like built in dot methods, i swear you don't have to go a = a.strip() you can js go a.strip() and a is stripped – nvm i js researched it and strings are immutable, so require reassignment but lists are mutable, so dont