+ 1
Is None same as null?
9 odpowiedzi
+ 9
It is! (null is like none for other languages...)
+ 7
A = ["A", "B"]
A[2] is undefined. I'm not sure if this is the same as None, but null means an absence of value. It's not the same as undefined.
+ 4
while in other programming languages sometimes we have to declared a variable as 'null' (basically for count like count = null;) that means it don't have anything within it. but latter we increase it depending upon our programming logic and print the result. same thing happens in python but difference is we use 'None' instead of 'null'. because different programming languages have their own coding style.
+ 3
yes
+ 1
null is some default symbol, but None stay a address only no values
0
well not exactly. None means nothing and null means unknown
0
Null doesn't exist in Python.
Actually, under the cover, in C, the None value is used to represent None, and null is used to say "something's wrong".
0
Yes, the exact same