Which are immutable data types and how?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Which are immutable data types and how??

1.tuple 2. List 3.dictionary 4.set 5.float EXPLAIN PLZ

15th Dec 2020, 8:45 PM
คгשเภ๔ кย๓คг
คгשเภ๔ кย๓คг - avatar
2 Answers
+ 3
On the other hand, mutable types like lists and dictionaries can be modified and grow in size.
15th Dec 2020, 9:31 PM
Sonic
Sonic - avatar
+ 1
 int float bool string unicode tuple This are immutable. In simple words, an immutable object can’t be changed after it is created. Ex. My_string="hello" My_string[0]="C" #Error
15th Dec 2020, 9:16 PM
Ratnapal Shende
Ratnapal Shende - avatar