This is the last lesson of the course and covers quirks and oddities arising when using immutable objects. One of these oddities is a (immutable) tuple containing a (mutable) list. This example is covered in more depth in the video.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
chmayurnath on April 18, 2019
I have a doubt on immutability, might be basic, but please clarify .
if I re assign a value to string or tuple variable, it does get changed, Please let me know why
eg String str=”abc” str=”xyz”
if we print str it would be xyz. why str is getting modified if we reassign a complete value.