Answers for "check if variable is None"

0

check if variable is None

a = None
b = 5
print((a, isinstance(a, type(None))))    
print((b, isinstance(b, type(None))))
Posted by: Guest on February-17-2022

Code answers related to "check if variable is None"

Python Answers by Framework

Browse Popular Code Answers by Language