COMPUTER.............................
PYTHON.........................
What is the difference between mutable and immutable data types in python?
PLEASE DO NOT ANSWER IF YOU DON'T KNOW THE ANSWER AND DON'T COPY FROM NET. I JUST NEED EXPLANATION IN OWN WORDS.
Answers
Answered by
3
A mutable data type is a data type which can be modified after value assignment.
For example:
Li=[10,30,40]
Li[0]=100
print (Li)
here it will print
Li=[100,30,40]
but , immutable data type can't be modified , after value assignment.
Similar questions