Please enable JavaScript to use CodeHS

CodeHS Glossary


String Immutability Python

Strings cannot be mutated or changed.

farewell = "bye"
farewell = farewell + "!" # this will create a new string, NOT mutate the previous farewell