(Sep-22-2020, 07:55 PM)ndc85430 Wrote: Values like integers, floats, strings and others are immutable and can't be changed, but you can change what a variable refers to.
Awesome. Another question to help clarify things. When I hear immutable vs. mutable, I think of the list data type (mutable) vs. tuple data type (immutable). But, I also see list and dictionary data type included as literals...even though they are both mutable. Are these exceptions to the rule for literals?
Also, would you define a literal as the value as you see it? What exactly does that mean? Can you compare the differences between a literal and non-literal? What makes one a literal and the other not a literal?