+ 2

What is a mutable object?

18th Aug 2017, 3:56 PM
brunda vishishta i
brunda vishishta i - avatar
1 Answer
0
"mutable"--> means that the object u made or u have u can change its elements.. immutable --> u can not change in python strings,tuples are immutable sets,dictionaries are mutable... strings-> "brunda" tuple->('b', 'r', 'u', 'n', 'd', 'a') set->['b', 'r', 'u', 'n', 'd', 'a'] etcetra..... further info : https://medium.com/@meghamohan/mutable-and-immutable-side-of-python-c2145cf72747?_e_pi_=7%2CPAGE_ID10%2C6754934843
18th Aug 2017, 4:14 PM
sayan chandra
sayan chandra - avatar