Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if null

noneObj = type(None)()
print(NoneObj)
// Check if NoneObj is instance of NoneType class
print(NoneObj is None)

//If-Else example
if (error is not None):
	result = error.decode()
else:
	result = "Hurray ^_^"

print(result)
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #python #null
ADD COMMENT
Topic
Name
3+6 =