---
title: "What are Python’s mutable and immutable types?"  
description: "What are Python’s mutable and immutable types?"  
author: "Ravi Vishwakarma"  
published: 2025-08-25  
updated: 2025-08-25  
canonical: https://www.mindstick.com/forum/161888/what-are-python-s-mutable-and-immutable-types  
category: "python"  
tags: ["python-3.4", "python", "Python 3"]  
reading_time: 2 minutes  

---

# What are Python’s mutable and immutable types?

## What are Python’s mutable and immutable types?

## Replies

### Reply by Anubhav Sharma

In Python, data types are break in tow part, either mutable or immutable based on whether their values can be changed after they are created.

## Mutable Types:

Mutable objects can be modified after their creation without changing their memory address. This means that operations can be performed directly on the object (same address) to alter its content.

## Examples of built-in mutable types:

- `list`: Ordered, changeable collection of items.
- `dict`: Unordered, changeable collection of key-value pairs.
- `set`: Unordered, changeable collection of unique items.
- `bytearray`: Mutable sequence of bytes.

## Immutable Types:

Immutable objects cannot be changed after their creation. Any operation that appears to modify an immutable object actually results in the creation of a new object with the modified value. The original object remains unchanged.

## Examples of built-in immutable types:

- `int`: Integers.
- `float`: Floating-point numbers.
- `str`: Strings (sequences of characters).
- `tuple`: Ordered, unchangeable collection of items.
- `frozenset`: Immutable version of a set.
- `bool`: Boolean values (True/False).

## Read More

- [What is the difference between mutable and immutable types in Python?](https://www.mindstick.com/interview/34017/what-is-the-difference-between-mutable-and-immutable-types-in-python)
- [What is the difference between is and == in Python?](https://www.mindstick.com/forum/161262/what-is-the-difference-between-is-and-in-python)
- [What are Python's built-in data structures?](https://www.mindstick.com/forum/161373/what-are-python-s-built-in-data-structures)


---

Original Source: https://www.mindstick.com/forum/161888/what-are-python-s-mutable-and-immutable-types

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
