Andrey (azangru) wrote,

Еще раз Мамо!

a = "doctor"
a[1] = "i"
print a

Это работает в Руби. Но это не работает в Питоне, потому что in Python, strings are immutable.
Не помню, сработает ли это (с поправками на синтаксис) в С или PHP.

  • (no subject)

    Today I learned that the word maidan exists in English, and that it is of Arabic origin. I've never heard it other than in the Ukranian context of…

  • (no subject)

    A short report by Leonid Rogozov about how he operated on himself to remove his own appendix in Antarctica. Published in English in the Soviet…

  • (no subject)

    Great opening paragraphs by Chris. The first one captures what I've been feeling about the subject, but haven't found the words to express it so…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.