I have a question about “None”. This exercise says
" None
is a special value in Python. It is unique (there can’t be two different None
s) and immutable (you can’t update None
or assign new attributes to it)."
So I thought it would be error
#sample code
aa = None
print(aa)
aa = “something”
print(aa)
#end of code
When I ran codes, The result was
None
something
I didn’t get error and I thought I did assign new attributes to “aa” which was “None”.
Why is None immutable ?