What is mutable and immutable types ?
list immutable and mutable
types of python.
Answers
Answered by
15
Explanation:
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. Custom classes are generally mutable.
Plz follow me
Answered by
22
mutable :--- that are changeable; that can be changed.(script mode)
non mutable:--- that are not changeable;that cannot be change (interactive mode).
list of mutable in Python :--
tuple
dictionary
list of non mutable in Python:--
lists
float
int
string
thanks
mark as brainlist
follow me
Similar questions