Computer Science, asked by anilkumar08, 11 months ago

Immutable data type in python?​

Answers

Answered by hemantjnv
1

Everything in Python is an object. ... Simple put, a mutable object can be changed after it is created, and an immutable object can't. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable.

hope u understand☺

Answered by sowmyasony
1

what is immutable data in python?

An immutable object is an object that cannot be modified. That means once created its state cannot be changed. It will represent the same value once created. For Example — String is immutable in python. A string object will always represent the same value, it can't be modified.

Mutable and Immutable Data Types in Python :

Some of the mutable data types in Python are list, dictionary, set and user-defined classes.

On the other hand, some of the immutable data types are int, float, decimal, bool, string, tuple, and range.

mark me as brainlist

Similar questions