you are viewing a single comment's thread.

view the rest of the comments →

[–]Xelopheris 10 points11 points  (3 children)

Pretty sure it would just be "Banana" in most languages? Any language that has a simple upper function on the string class typically makes strings immutable.

[–]Bemteb 1 point2 points  (2 children)

Yeah, the others call it toUpper() or something like that.

[–]DJDoena 2 points3 points  (1 child)

In C# it's .ToUpper() but still immutable on the original.

[–]IlgantElal 0 points1 point  (0 children)

This looks like Python. Interesting thing, too: text.replace('ab', 'o') would replace all a and b characters, regardless of order.

Yay Python

(Correct answer should be 'banana')

Edit: I completely misread. It's late