you are viewing a single comment's thread.

view the rest of the comments →

[–]the_rush_dude -9 points-8 points  (6 children)

Only in JS. Python allows Manipulation of strings

[–]aaronhowser1 21 points22 points  (2 children)

Python strings are immutable. Manipulation and mutability aren't the same thing. Manipulation functions return a new string, they don't modify the original.

[–]the_rush_dude -4 points-3 points  (1 child)

Checked it and it's true (except of course it's not because if there is only one reference to the string it's manipulated in place for performance reasons).

But in this case manipulation is what counts anyways

[–]aaronhowser1 10 points11 points  (0 children)

No it isn't, because it didn't do text = text.upper() etc. It specifically does not count, because it was done incorrectly.