7.1 Intro to String Manipulation

Intro to String Manipulation

There are various ways that you can manipulate strings.
Technically, strings are immutable, which means that you are not changing the string itself but rather you are changing what the variable references.
# immutable name = "Ahsoka Tano" # this does not change "Ahsoka Tano", # it's just assigning name to a different string name = "Rey"
View code on GitHub.

Previous Chapter

Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.