Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Mutable or Immutable? | Getting Familiar With Numbers in Python
Data Types in Python
course content

Course Content

Data Types in Python

Data Types in Python

1. Getting Familiar With Numbers in Python
2. True or False?
3. Strings
4. Bring All the Topics Together

bookMutable or Immutable?

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Task

Change the value of the variable var1 to be 150.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
toggle bottom row

bookMutable or Immutable?

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Task

Change the value of the variable var1 to be 150.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
toggle bottom row

bookMutable or Immutable?

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Task

Change the value of the variable var1 to be 150.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

It is necessary to understand that there are mutable and immutable data types. The first one can be changed after its creation, but the second one prohibits us from making any modifications.

Immutable data types, as the name implies, cannot be changed once they're made.
In contrast, mutable data types are objects that can be altered after they're created.

Task

Change the value of the variable var1 to be 150.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt