Empty Is Not Nothing
Beginners routinely collapse four distinct ideas into one. They are not the same:
0, a number. A real value that happens to be zero.
"", a string containing zero characters. Still a string.
[], a list/array with no items. Still a collection.
None / null, no value of any kind exists here.
The practical skill is checking for nothing before you use a value. Both languages have a clean idiom for it.
Mark this lesson complete
Signed in, your progress follows you to every device.