How to check if a variable is not null in Python

1 Answer

0 votes
var = 'python'

if var is not None:
    print('Var is not null')
    


'''
run:

Var is not null

'''

 



answered Jun 16, 2022 by avibootz

Related questions

2 answers 136 views
8 answers 614 views
2 answers 242 views
4 answers 378 views
1 answer 157 views
...