40485/what-is-null-in-python
as None is an object, you can test for it just like any other object.\
you can use it in a program like:
if (condition) is null :
In python no primitive data types. python treats as object and the theres reference so there is on any explicit variable declaration like Java or c (String var_name=”Hello”; in java )it happens implicitly once you assign the object to reference then it looks appear like variable which of that object type so if you create reference and assign None(usually in other languages Null) it means your not referring any thing but when you create a empty string (by using ‘’ ) . in that case there is reference and string also there but the thing is that string length is zero which means that string nothing have to execute consider my follow code
type( string_var1)
<class 'NoneType'>
>>> print( string_var1)
None
>>> string_var2=''
>>> type( string_var2)
<class 'str'>
>>> len( string_var2)
0
Polymorphism is the ability to present the ...READ MORE
Python doesn't have a native array data ...READ MORE
A module is a file containing a ...READ MORE
raw_input fuction is no longer available in ...READ MORE
This is the way "continue" statement works! You ...READ MORE
Machine Learning is a vast domain. It ...READ MORE
Try this: if cookie and not cookie.isspace(): # the ...READ MORE
Easiest way: math.factorial(x) (available in 2.6 and ...READ MORE
you get a type error when you ...READ MORE
if condition: statement elif condition: statement #this is how you use ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.