Please enable JavaScript to use CodeHS

Intro to Programming in Python with Arduino

Lesson 8.3 Immutability

Description

In Python, strings have the property of “immutability” which means they cannot be mutated or changed. You can assign strings to variables, and reassign new strings to the same variable, but individual characters within a string cannot be reassigned.


Objective

Students will be able to:

  • explain what immutability is and how this applies to strings in Python

Activities

These are all the activities included in the lesson

8.3.1 Immutability
8.3.2 Immutability
8.3.3 String Immutability
8.3.4 Find the Error