Q. In Python, strings are immutable while lists are mutable. What is the difference?

 

Answer =

 

(i) In consecutive locations, strings store the individual characters while list stores the references of its elements

(ii) Strings store single type of elements - all characters while lists can store elements belonging to different types.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post